class TextContentDescriber
extends java.lang.Object
implements org.eclipse.core.runtime.content.ITextContentDescriber
Note: do not add protected/public members to this class if you don't intend to make them public API.
XMLRootElementContentDescriber2
Modifier and Type | Field and Description |
---|---|
private static org.eclipse.core.runtime.QualifiedName[] |
SUPPORTED_OPTIONS |
Constructor and Description |
---|
TextContentDescriber() |
Modifier and Type | Method and Description |
---|---|
int |
describe(java.io.InputStream contents,
org.eclipse.core.runtime.content.IContentDescription description) |
int |
describe(java.io.Reader contents,
org.eclipse.core.runtime.content.IContentDescription description) |
(package private) byte[] |
getByteOrderMark(java.io.InputStream input) |
org.eclipse.core.runtime.QualifiedName[] |
getSupportedOptions() |
private static final org.eclipse.core.runtime.QualifiedName[] SUPPORTED_OPTIONS
public int describe(java.io.Reader contents, org.eclipse.core.runtime.content.IContentDescription description) throws java.io.IOException
describe
in interface org.eclipse.core.runtime.content.ITextContentDescriber
java.io.IOException
public int describe(java.io.InputStream contents, org.eclipse.core.runtime.content.IContentDescription description) throws java.io.IOException
describe
in interface org.eclipse.core.runtime.content.IContentDescriber
java.io.IOException
public org.eclipse.core.runtime.QualifiedName[] getSupportedOptions()
getSupportedOptions
in interface org.eclipse.core.runtime.content.IContentDescriber
byte[] getByteOrderMark(java.io.InputStream input) throws java.io.IOException
java.io.IOException