public interface IEncodedStreamContentAccessor extends IStreamContentAccessor
IStreamContentAccessor. Extends the original
concept of a IStreamContentAccessor to answer the Charset (encoding) used for the stream.| Modifier and Type | Method and Description |
|---|---|
String |
getCharset()
Returns the name of a charset encoding to be used when decoding this
stream accessor's contents into characters.
|
getContentsString getCharset() throws CoreException
null if a proper
encoding cannot be determined.
Note: 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.IStreamContentAccessor.getContents()Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.