Class BinaryEncoding.FromHex
java.lang.Object
java.io.InputStream
org.apache.sis.internal.sql.feature.BinaryEncoding.FromHex
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
- BinaryEncoding
An input stream which converts hexadecimal string on-the-fly.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final InputStreamThe input stream providing hexadecimal digits. -
Constructor Summary
ConstructorsConstructorDescriptionFromHex(InputStream source) Creates a new input stream which will decode the given source. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an estimate of the number of bytes that can be read.voidclose()Closes this input stream.voidmark(int n) Marks the current position in this input stream.booleanTests if this input stream supports the mark and reset methods.intread()Returns the next decoded byte.voidreset()Repositions this stream to the position of the mark.longskip(long n) Skips over and discards n bytes of data.Methods inherited from class java.io.InputStream
read, read
-
Field Details
-
source
The input stream providing hexadecimal digits.
-
-
Constructor Details
-
FromHex
FromHex(InputStream source) Creates a new input stream which will decode the given source.
-
-
Method Details
-
read
Returns the next decoded byte.- Specified by:
readin classInputStream- Throws:
IOException
-
skip
Skips over and discards n bytes of data.- Overrides:
skipin classInputStream- Throws:
IOException
-
available
Returns an estimate of the number of bytes that can be read.- Overrides:
availablein classInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()Tests if this input stream supports the mark and reset methods.- Overrides:
markSupportedin classInputStream
-
mark
public void mark(int n) Marks the current position in this input stream.- Overrides:
markin classInputStream
-
reset
Repositions this stream to the position of the mark.- Overrides:
resetin classInputStream- Throws:
IOException
-
close
Closes this input stream.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-