class XMLContentDescriber extends TextContentDescriber 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,
"http://www.w3.org/TR/REC-xml *"| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
ENCODING |
private static org.eclipse.core.runtime.QualifiedName[] |
SUPPORTED_OPTIONS |
private static java.lang.String |
XML_PREFIX |
| Constructor and Description |
|---|
XMLContentDescriber() |
| Modifier and Type | Method and Description |
|---|---|
int |
describe(java.io.InputStream input,
org.eclipse.core.runtime.content.IContentDescription description) |
int |
describe(java.io.Reader input,
org.eclipse.core.runtime.content.IContentDescription description) |
private java.lang.String |
getCharset(java.lang.String firstLine) |
org.eclipse.core.runtime.QualifiedName[] |
getSupportedOptions() |
private java.lang.String |
readFullXMLDecl(java.io.InputStream input,
java.lang.String unicodeEncoding) |
getByteOrderMarkprivate static final org.eclipse.core.runtime.QualifiedName[] SUPPORTED_OPTIONS
private static final java.lang.String ENCODING
private static final java.lang.String XML_PREFIX
public int describe(java.io.InputStream input,
org.eclipse.core.runtime.content.IContentDescription description)
throws java.io.IOException
describe in interface org.eclipse.core.runtime.content.IContentDescriberdescribe in class TextContentDescriberjava.io.IOExceptionprivate java.lang.String readFullXMLDecl(java.io.InputStream input,
java.lang.String unicodeEncoding)
throws java.io.IOException
java.io.IOExceptionpublic int describe(java.io.Reader input,
org.eclipse.core.runtime.content.IContentDescription description)
throws java.io.IOException
describe in interface org.eclipse.core.runtime.content.ITextContentDescriberdescribe in class TextContentDescriberjava.io.IOExceptionprivate java.lang.String getCharset(java.lang.String firstLine)
public org.eclipse.core.runtime.QualifiedName[] getSupportedOptions()
getSupportedOptions in interface org.eclipse.core.runtime.content.IContentDescribergetSupportedOptions in class TextContentDescriber