org.eclipse.core.resources
public interface IEncodedStorage extends IStorage
The IEncodedStorage interface extends IStorage
in order to provide access to the charset to be used when decoding its
contents.
Clients may implement this interface.
| Modifier and Type | Method and Description |
|---|---|
String |
getCharset()
Returns the name of a charset encoding to be used when decoding this
storage's contents into characters.
|
getContents, getFullPath, getName, isReadOnlygetAdapterString getCharset() throws CoreException
null if a proper
encoding cannot be determined.
Note that this method does not check whether the result is a supported
charset name. Callers should be prepared to handle
UnsupportedEncodingException where this charset is used.
nullCoreException - if an error happens while determining
the charset. See any refinements for more information.IStorage.getContents()Guidelines for using Eclipse APIs. Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.