Package org.htmlunit.util
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 java.io.Reader
mark, markSupported, nullReader, read, read, read, 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classReader
- Throws:
IOException
-
read
- Specified by:
read
in classReader
- Throws:
IOException
-