? SwappedDataInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.commons.io.input.ProxyInputStream
org.apache.commons.io.input.SwappedDataInputStream
- ????????:
Closeable
,DataInput
,AutoCloseable
DataInput for systems relying on little endian data formats. When read, values will be changed from little endian to
big endian formats for internal usage.
Origin of code: Avalon Excalibur (IO)
-
????
??????? java.io.FilterInputStream
in
-
?????
??? -
????
??????????boolean
ReturnreadByte()
!= 0byte
readByte()
Invokes the delegate'sread()
method.char
readChar()
Reads a character delegating toreadShort()
.double
Delegates toEndianUtils.readSwappedDouble(InputStream)
.float
Delegates toEndianUtils.readSwappedFloat(InputStream)
.void
readFully
(byte[] data) Invokes the delegate'sread(byte[] data, int, int)
method.void
readFully
(byte[] data, int offset, int length) Invokes the delegate'sread(byte[] data, int, int)
method.int
readInt()
Delegates toEndianUtils.readSwappedInteger(InputStream)
.readLine()
Not currently supported - throwsUnsupportedOperationException
.long
readLong()
Delegates toEndianUtils.readSwappedLong(InputStream)
.short
Delegates toEndianUtils.readSwappedShort(InputStream)
.int
Invokes the delegate'sread()
method.int
Delegates toEndianUtils.readSwappedUnsignedShort(InputStream)
.readUTF()
Not currently supported - throwsUnsupportedOperationException
.int
skipBytes
(int count) Invokes the delegate'sskip(int)
method.??????? org.apache.commons.io.input.ProxyInputStream
afterRead, available, beforeRead, close, handleIOException, mark, markSupported, read, read, read, reset, skip
??????? java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
???????
-
SwappedDataInputStream
Constructs a SwappedDataInputStream.- ??:
input
- InputStream to read from
-
-
??????
-
readBoolean
ReturnreadByte()
!= 0- ???:
readBoolean
????DataInput
- ??:
- false if the byte read is zero, otherwise true
- ??:
IOException
- if an I/O error occurs.EOFException
- if an end of file is reached unexpectedly
-
readByte
Invokes the delegate'sread()
method.- ???:
readByte
????DataInput
- ??:
- the byte read or -1 if the end of stream
- ??:
IOException
- if an I/O error occurs.EOFException
- if an end of file is reached unexpectedly
-
readChar
Reads a character delegating toreadShort()
.- ???:
readChar
????DataInput
- ??:
- the byte read or -1 if the end of stream
- ??:
IOException
- if an I/O error occurs.EOFException
- if an end of file is reached unexpectedly
-
readDouble
Delegates toEndianUtils.readSwappedDouble(InputStream)
.- ???:
readDouble
????DataInput
- ??:
- the read long
- ??:
IOException
- if an I/O error occurs.EOFException
- if an end of file is reached unexpectedly
-
readFloat
Delegates toEndianUtils.readSwappedFloat(InputStream)
.- ???:
readFloat
????DataInput
- ??:
- the read long
- ??:
IOException
- if an I/O error occurs.EOFException
- if an end of file is reached unexpectedly
-
readFully
Invokes the delegate'sread(byte[] data, int, int)
method.- ???:
readFully
????DataInput
- ??:
data
- the buffer to read the bytes into- ??:
EOFException
- if an end of file is reached unexpectedlyIOException
- if an I/O error occurs.
-
readFully
Invokes the delegate'sread(byte[] data, int, int)
method.- ???:
readFully
????DataInput
- ??:
data
- the buffer to read the bytes intooffset
- The start offsetlength
- The number of bytes to read- ??:
EOFException
- if an end of file is reached unexpectedlyIOException
- if an I/O error occurs.
-
readInt
Delegates toEndianUtils.readSwappedInteger(InputStream)
.- ???:
readInt
????DataInput
- ??:
- the read long
- ??:
EOFException
- if an end of file is reached unexpectedlyIOException
- if an I/O error occurs.
-
readLine
Not currently supported - throwsUnsupportedOperationException
.- ???:
readLine
????DataInput
- ??:
- the line read
- ??:
EOFException
- if an end of file is reached unexpectedlyIOException
- if an I/O error occurs.
-
readLong
Delegates toEndianUtils.readSwappedLong(InputStream)
.- ???:
readLong
????DataInput
- ??:
- the read long
- ??:
EOFException
- if an end of file is reached unexpectedlyIOException
- if an I/O error occurs.
-
readShort
Delegates toEndianUtils.readSwappedShort(InputStream)
.- ???:
readShort
????DataInput
- ??:
- the read long
- ??:
EOFException
- if an end of file is reached unexpectedlyIOException
- if an I/O error occurs.
-
readUnsignedByte
Invokes the delegate'sread()
method.- ???:
readUnsignedByte
????DataInput
- ??:
- the byte read or -1 if the end of stream
- ??:
EOFException
- if an end of file is reached unexpectedlyIOException
- if an I/O error occurs.
-
readUnsignedShort
Delegates toEndianUtils.readSwappedUnsignedShort(InputStream)
.- ???:
readUnsignedShort
????DataInput
- ??:
- the read long
- ??:
EOFException
- if an end of file is reached unexpectedlyIOException
- if an I/O error occurs.
-
readUTF
Not currently supported - throwsUnsupportedOperationException
.- ???:
readUTF
????DataInput
- ??:
- UTF String read
- ??:
EOFException
- if an end of file is reached unexpectedlyIOException
- if an I/O error occurs.
-
skipBytes
Invokes the delegate'sskip(int)
method.- ???:
skipBytes
????DataInput
- ??:
count
- the number of bytes to skip- ??:
- the number of bytes to skipped or -1 if the end of stream
- ??:
EOFException
- if an end of file is reached unexpectedlyIOException
- if an I/O error occurs.
-