Class HTMLScanner.CurrentEntity

java.lang.Object
org.cyberneko.html.HTMLScanner.CurrentEntity
Enclosing class:
HTMLScanner

public static class HTMLScanner.CurrentEntity extends Object
Current entity.
Author:
Andy Clark
  • Field Details

    • publicId

      public final String publicId
      Public identifier.
    • baseSystemId

      public final String baseSystemId
      Base system identifier.
    • literalSystemId

      public final String literalSystemId
      Literal system identifier.
    • expandedSystemId

      public final String expandedSystemId
      Expanded system identifier.
    • version

      public final String version
      XML version.
      See Also:
    • characterOffset_

      public int characterOffset_
      Character offset in the file.
    • buffer

      public char[] buffer
      Character buffer.
    • offset

      public int offset
      Offset into character buffer.
    • length

      public int length
      Length of characters read into character buffer.
  • Constructor Details

    • CurrentEntity

      public CurrentEntity(Reader stream, String encoding, String publicId, String baseSystemId, String literalSystemId, String expandedSystemId)
      Constructs an entity from the specified stream.
  • Method Details

    • load

      protected int load(int offset) throws IOException
      Loads a new chunk of data into the buffer and returns the number of characters loaded or -1 if no additional characters were loaded.
      Parameters:
      offset - The offset at which new characters should be loaded.
      Throws:
      IOException
    • read

      protected int read() throws IOException
      Reads a single character.
      Throws:
      IOException
    • getLineNumber

      public int getLineNumber()