|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cyberneko.html.HTMLScanner.CurrentEntity
public static class HTMLScanner.CurrentEntity
Current entity.
| Field Summary | |
|---|---|
String |
baseSystemId
Base system identifier. |
char[] |
buffer
Character buffer. |
int |
characterOffset_
Character offset in the file. |
String |
encoding
Encoding. |
String |
expandedSystemId
Expanded system identifier. |
int |
length
Length of characters read into character buffer. |
String |
literalSystemId
Literal system identifier. |
int |
offset
Offset into character buffer. |
String |
publicId
Public identifier. |
String |
version
XML version. |
| Constructor Summary | |
|---|---|
HTMLScanner.CurrentEntity(Reader stream,
String encoding,
String publicId,
String baseSystemId,
String literalSystemId,
String expandedSystemId)
Constructs an entity from the specified stream. |
|
| Method Summary | |
|---|---|
int |
getLineNumber()
|
protected int |
load(int offset)
Loads a new chunk of data into the buffer and returns the number of characters loaded or -1 if no additional characters were loaded. |
protected int |
read()
Reads a single character. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final String encoding
public final String publicId
public final String baseSystemId
public final String literalSystemId
public final String expandedSystemId
public final String version
public int characterOffset_
public char[] buffer
public int offset
public int length
| Constructor Detail |
|---|
public HTMLScanner.CurrentEntity(Reader stream,
String encoding,
String publicId,
String baseSystemId,
String literalSystemId,
String expandedSystemId)
| Method Detail |
|---|
protected int load(int offset)
throws IOException
offset - The offset at which new characters should be loaded.
IOException
protected int read()
throws IOException
IOExceptionpublic int getLineNumber()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||