public final class PtpInputStream
extends java.io.InputStream
Constructor and Description |
---|
PtpInputStream(java.io.InputStream is)
Wrap InputStream by PtpInputStream.
|
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
java.util.List<INT128> |
readAINT128()
Read list of INT128 from the stream.
|
java.util.List<INT16> |
readAINT16()
Read list of INT16 from the stream.
|
java.util.List<INT32> |
readAINT32()
Read list of INT32 from the stream.
|
java.util.List<INT64> |
readAINT64()
Read list of INT64 from the stream.
|
java.util.List<INT8> |
readAINT8()
Read list of INT8 from the stream.
|
java.lang.Object |
readAs(DataType dataType)
Read data as DataType of specified code.
|
java.util.List<UINT128> |
readAUINT128()
Read list of UINT128 from the stream.
|
java.util.List<UINT16> |
readAUINT16()
Read list of UINT16 from the stream.
|
java.util.List<UINT32> |
readAUINT32()
Read list of UINT16 from the stream.
|
java.util.List<UINT64> |
readAUINT64()
Read list of UINT64 from the stream.
|
java.util.List<UINT8> |
readAUINT8()
Read list of UINT8 from the stream.
|
INT128 |
readINT128()
Read INT128 value from the stream.
|
INT16 |
readINT16()
Read INT16 value from the stream.
|
INT32 |
readINT32()
Read INT32 value from the stream.
|
INT64 |
readINT64()
Read INT64 value from the stream.
|
INT8 |
readINT8()
Read INT8 value from the stream.
|
java.lang.String |
readString()
Read list of String from the stream as PTP String.
|
UINT128 |
readUINT128()
Read UINT128 value from the stream.
|
UINT16 |
readUINT16()
Read UINT16 value from the stream.
|
UINT32 |
readUINT32()
Read UINT32 value from the stream.
|
UINT64 |
readUINT64()
Read UINT64 value from the stream.
|
UINT8 |
readUINT8()
Read UINT8 value from the stream.
|
void |
reset() |
long |
skip(long n) |
public PtpInputStream(java.io.InputStream is)
is
- public INT8 readINT8() throws java.io.IOException
java.io.IOException
public UINT8 readUINT8() throws java.io.IOException
java.io.IOException
public INT16 readINT16() throws java.io.IOException
java.io.IOException
public UINT16 readUINT16() throws java.io.IOException
java.io.IOException
public INT32 readINT32() throws java.io.IOException
java.io.IOException
public UINT32 readUINT32() throws java.io.IOException
java.io.IOException
public INT64 readINT64() throws java.io.IOException
java.io.IOException
public UINT64 readUINT64() throws java.io.IOException
java.io.IOException
public INT128 readINT128() throws java.io.IOException
java.io.IOException
public UINT128 readUINT128() throws java.io.IOException
java.io.IOException
public java.util.List<INT8> readAINT8() throws java.io.IOException
java.io.IOException
public java.util.List<UINT8> readAUINT8() throws java.io.IOException
java.io.IOException
public java.util.List<INT16> readAINT16() throws java.io.IOException
java.io.IOException
public java.util.List<UINT16> readAUINT16() throws java.io.IOException
java.io.IOException
public java.util.List<INT32> readAINT32() throws java.io.IOException
java.io.IOException
public java.util.List<UINT32> readAUINT32() throws java.io.IOException
java.io.IOException
public java.util.List<INT64> readAINT64() throws java.io.IOException
java.io.IOException
public java.util.List<UINT64> readAUINT64() throws java.io.IOException
java.io.IOException
public java.util.List<INT128> readAINT128() throws java.io.IOException
java.io.IOException
public java.util.List<UINT128> readAUINT128() throws java.io.IOException
java.io.IOException
public java.lang.String readString() throws java.io.IOException
java.io.IOException
public java.lang.Object readAs(DataType dataType) throws java.io.IOException
dataType
- java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.InputStream
java.io.IOException
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException
public void mark(int readlimit)
mark
in class java.io.InputStream
public void reset() throws java.io.IOException
reset
in class java.io.InputStream
java.io.IOException
public boolean markSupported()
markSupported
in class java.io.InputStream