Class XmlUtils.TrackBlankContentAndSkipLeadingWhitespaceReader
java.lang.Object
java.io.Reader
org.htmlunit.util.XmlUtils.TrackBlankContentAndSkipLeadingWhitespaceReader
- All Implemented Interfaces:
Closeable, AutoCloseable, Readable
- Enclosing class:
XmlUtils
Helper for memory and performance optimization.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Reader
mark, markSupported, nullReader, of, read, read, read, readAllAsString, readAllLines, ready, reset, skip, transferTo
-
Field Details
-
reader_
-
wasBlank_
private boolean wasBlank_
-
-
Constructor Details
-
TrackBlankContentAndSkipLeadingWhitespaceReader
TrackBlankContentAndSkipLeadingWhitespaceReader(Reader characterStream)
-
-
Method Details
-
wasBlank
public boolean wasBlank() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classReader- Throws:
IOException
-
read
- Specified by:
readin classReader- Throws:
IOException
-