Package com.barchart.udt.nio
Class NioInputStreamUDT
java.lang.Object
java.io.InputStream
com.barchart.udt.nio.NioInputStreamUDT
- All Implemented Interfaces:
Closeable,AutoCloseable
InputStream implementation for UDT sockets.-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNioInputStreamUDT(SocketChannelUDT channel) Creates a new input stream for the specified channel. -
Method Summary
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
channel
-
-
Constructor Details
-
NioInputStreamUDT
Creates a new input stream for the specified channel.- Parameters:
channel- The UDT socket channel.
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
markin classInputStream
-
reset
- Overrides:
resetin classInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream
-