public static class HTMLScanner.CurrentEntity
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
baseSystemId
Base system identifier.
|
char[] |
buffer
Character buffer.
|
int |
characterOffset_
Character offset in the file.
|
java.lang.String |
expandedSystemId
Expanded system identifier.
|
int |
length
Length of characters read into character buffer.
|
java.lang.String |
literalSystemId
Literal system identifier.
|
int |
offset
Offset into character buffer.
|
java.lang.String |
publicId
Public identifier.
|
java.lang.String |
version
XML version.
|
Constructor and Description |
---|
HTMLScanner.CurrentEntity(java.io.Reader stream,
java.lang.String encoding,
java.lang.String publicId,
java.lang.String baseSystemId,
java.lang.String literalSystemId,
java.lang.String expandedSystemId)
Constructs an entity from the specified stream.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public final java.lang.String publicId
public final java.lang.String baseSystemId
public final java.lang.String literalSystemId
public final java.lang.String expandedSystemId
public final java.lang.String version
public int characterOffset_
public char[] buffer
public int offset
public int length
public HTMLScanner.CurrentEntity(java.io.Reader stream, java.lang.String encoding, java.lang.String publicId, java.lang.String baseSystemId, java.lang.String literalSystemId, java.lang.String expandedSystemId)
protected int load(int offset) throws java.io.IOException
offset
- The offset at which new characters should be loaded.java.io.IOException
protected int read() throws java.io.IOException
java.io.IOException
public int getLineNumber()
(C) Copyright 2002-2014, Andy Clark, Marc Guillemot. All rights reserved.