Package org.netxms.base
Class NXCPDataInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.io.DataInputStream
org.netxms.base.NXCPDataInputStream
- All Implemented Interfaces:
- Closeable,- DataInput,- AutoCloseable
Custom input stream for parsing NXCP messages
- 
Field SummaryFields inherited from class java.io.FilterInputStreamin
- 
Constructor SummaryConstructorsConstructorDescriptionNXCPDataInputStream(byte[] data) Create NXCP data input stream for reading from existing byte arrayCreate NXCP data input stream on top of existing input stream
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()longRead unsigned 32-bit integer from input streamMethods inherited from class java.io.DataInputStreamread, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytesMethods inherited from class java.io.FilterInputStreamavailable, mark, markSupported, read, reset, skipMethods inherited from class java.io.InputStreamnullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
- 
Constructor Details- 
NXCPDataInputStreamCreate NXCP data input stream on top of existing input stream- Parameters:
- in- Input stream
 
- 
NXCPDataInputStreampublic NXCPDataInputStream(byte[] data) Create NXCP data input stream for reading from existing byte array- Parameters:
- data- Byte array to read data from
 
 
- 
- 
Method Details- 
readUnsignedIntRead unsigned 32-bit integer from input stream- Returns:
- unsigned 32-bit integer converted into signed 64 bit integer
- Throws:
- IOException- if I/O error occurs
 
- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- FilterInputStream
- See Also:
 
 
-