|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ContentHandler.ByteOrderMark>
org.eclipse.emf.ecore.resource.ContentHandler.ByteOrderMark
public static enum ContentHandler.ByteOrderMark
A value specifying the byte order mark of a content description.
The byte order mark property will have a value of this type,
i.., either UTF_8, UTF_16BE, or UTF_16LE.
IContentDescription.BYTE_ORDER_MARK,
IContentDescription.BOM_UTF_8,
IContentDescription.BOM_UTF_16BE,
IContentDescription.BOM_UTF_16LE| Enum Constant Summary | |
|---|---|
UTF_16BE
A byte order mark indicating a UTF-16 big endian encoding. |
|
UTF_16LE
A byte order mark indicating a UTF-16 little endian encoding. |
|
UTF_8
A byte order mark indicating a UTF-8 encoding. |
|
| Method Summary | |
|---|---|
abstract byte[] |
bytes()
Returns the bytes associated with this byte order mark. |
static ContentHandler.ByteOrderMark |
read(java.io.InputStream inputStream)
Returns the byte order mark at the start of the input stream, or null if there isn't one. |
static ContentHandler.ByteOrderMark |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ContentHandler.ByteOrderMark[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ContentHandler.ByteOrderMark UTF_8
IContentDescription.BOM_UTF_8public static final ContentHandler.ByteOrderMark UTF_16BE
IContentDescription.BOM_UTF_16BEpublic static final ContentHandler.ByteOrderMark UTF_16LE
IContentDescription.BOM_UTF_16LE| Method Detail |
|---|
public static final ContentHandler.ByteOrderMark[] values()
for(ContentHandler.ByteOrderMark c : ContentHandler.ByteOrderMark.values())
System.out.println(c);
public static ContentHandler.ByteOrderMark valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namepublic abstract byte[] bytes()
IContentDescription.BYTE_ORDER_MARK.
IContentDescription.BYTE_ORDER_MARK,
IContentDescription.BOM_UTF_8,
IContentDescription.BOM_UTF_16BE,
IContentDescription.BOM_UTF_16LE
public static ContentHandler.ByteOrderMark read(java.io.InputStream inputStream)
throws java.io.IOException
null if there isn't one.
inputStream - the input stream to scan.
null if there isn't one.
java.io.IOException - if there is a problem reading from the input stream.
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||