Package org.eclipse.compare
Interface IEncodedStreamContentAccessor
-
- All Superinterfaces:
IStreamContentAccessor
- All Known Implementing Classes:
DocumentRangeNode,HistoryItem,ResourceNode,StructureRootNode
public interface IEncodedStreamContentAccessor extends IStreamContentAccessor
Extension forIStreamContentAccessor. Extends the original concept of aIStreamContentAccessorto answer the Charset (encoding) used for the stream.- Since:
- 3.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetCharset()Returns the name of a charset encoding to be used when decoding this stream accessor's contents into characters.-
Methods inherited from interface org.eclipse.compare.IStreamContentAccessor
getContents
-
-
-
-
Method Detail
-
getCharset
String getCharset() throws CoreException
Returns the name of a charset encoding to be used when decoding this stream accessor's contents into characters. Returnsnullif 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
UnsupportedEncodingExceptionwhere this charset is used.- Returns:
- the name of a charset, or
null - Throws:
CoreException- if an error happens while determining the charset. See any refinements for more information.- Since:
- 3.0
- See Also:
IStreamContentAccessor.getContents()
-
-