Package org.htmlunit.util
Class XmlUtils.TrackBlankContentAndSkipLeadingWhitespaceReader
- java.lang.Object
-
- java.io.Reader
-
- org.htmlunit.util.XmlUtils.TrackBlankContentAndSkipLeadingWhitespaceReader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Readable
- Enclosing class:
- XmlUtils
private static final class XmlUtils.TrackBlankContentAndSkipLeadingWhitespaceReader extends java.io.Reader
Helper for memory and performance optimization.
-
-
Constructor Summary
Constructors Constructor Description TrackBlankContentAndSkipLeadingWhitespaceReader(java.io.Reader characterStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
int
read(char[] cbuf, int off, int len)
boolean
wasBlank()
-
-
-
Method Detail
-
wasBlank
public boolean wasBlank()
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in classjava.io.Reader
- Throws:
java.io.IOException
-
read
public int read(char[] cbuf, int off, int len) throws java.io.IOException
- Specified by:
read
in classjava.io.Reader
- Throws:
java.io.IOException
-
-