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.IOExceptionpublic UINT8 readUINT8() throws java.io.IOException
java.io.IOExceptionpublic INT16 readINT16() throws java.io.IOException
java.io.IOExceptionpublic UINT16 readUINT16() throws java.io.IOException
java.io.IOExceptionpublic INT32 readINT32() throws java.io.IOException
java.io.IOExceptionpublic UINT32 readUINT32() throws java.io.IOException
java.io.IOExceptionpublic INT64 readINT64() throws java.io.IOException
java.io.IOExceptionpublic UINT64 readUINT64() throws java.io.IOException
java.io.IOExceptionpublic INT128 readINT128() throws java.io.IOException
java.io.IOExceptionpublic UINT128 readUINT128() throws java.io.IOException
java.io.IOExceptionpublic java.util.List<INT8> readAINT8() throws java.io.IOException
java.io.IOExceptionpublic java.util.List<UINT8> readAUINT8() throws java.io.IOException
java.io.IOExceptionpublic java.util.List<INT16> readAINT16() throws java.io.IOException
java.io.IOExceptionpublic java.util.List<UINT16> readAUINT16() throws java.io.IOException
java.io.IOExceptionpublic java.util.List<INT32> readAINT32() throws java.io.IOException
java.io.IOExceptionpublic java.util.List<UINT32> readAUINT32() throws java.io.IOException
java.io.IOExceptionpublic java.util.List<INT64> readAINT64() throws java.io.IOException
java.io.IOExceptionpublic java.util.List<UINT64> readAUINT64() throws java.io.IOException
java.io.IOExceptionpublic java.util.List<INT128> readAINT128() throws java.io.IOException
java.io.IOExceptionpublic java.util.List<UINT128> readAUINT128() throws java.io.IOException
java.io.IOExceptionpublic java.lang.String readString()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.Object readAs(DataType dataType) throws java.io.IOException
dataType - java.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionpublic void mark(int readlimit)
mark in class java.io.InputStreampublic void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOExceptionpublic boolean markSupported()
markSupported in class java.io.InputStream