Package org.basex.io.in
Class LookupInput
java.lang.Object
java.io.InputStream
org.basex.io.in.LookupInput
- All Implemented Interfaces:
Closeable,AutoCloseable
This input stream allows a lookup of the next byte to be returned
by an
InputStream reference.- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
LookupInput
Constructor.- Parameters:
input- buffer input to be wrapped- Throws:
IOException- I/O exception
-
-
Method Details
-
lookup
public int lookup()Returns the current (next) value.- Returns:
- current value
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-