net.sourceforge.dvb.projectx.xinput
Class XInputStream
java.lang.Object
|
+--java.io.InputStream
|
+--java.io.FilterInputStream
|
+--net.sourceforge.dvb.projectx.xinput.XInputStream
- public class XInputStream
- extends java.io.FilterInputStream
Fields inherited from class java.io.FilterInputStream |
in |
Constructor Summary |
XInputStream(java.io.InputStream aIs)
Create stream, which is able to handle special needs of the xinput package. |
Method Summary |
void |
close()
|
int |
read()
Takes care, that always the full amount of data is read (if possible).
|
int |
read(byte[] aBuffer)
Takes care, that always the full amount of data is read (if possible).
|
int |
read(byte[] aBuffer,
int off,
int len)
Takes care, that always the full amount of data is read (if possible).
|
void |
setFtpFile(XInputFileImpl aIf)
|
long |
skip(long n)
|
Methods inherited from class java.io.FilterInputStream |
available,
mark,
markSupported,
reset |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
XInputStream
public XInputStream(java.io.InputStream aIs)
- Create stream, which is able to handle special needs of the xinput package.
- Parameters:
aIs
- InputStream- See Also:
FilterInputStream.FilterInputStream(InputStream in)
setFtpFile
public void setFtpFile(XInputFileImpl aIf)
read
public final int read()
throws java.io.IOException
- Takes care, that always the full amount of data is read (if possible).
Blocks until it succeeds.
- Overrides:
- read in class java.io.FilterInputStream
- See Also:
InputStream.read()
read
public final int read(byte[] aBuffer)
throws java.io.IOException
- Takes care, that always the full amount of data is read (if possible).
Blocks until it succeeds.
- Overrides:
- read in class java.io.FilterInputStream
- Parameters:
aBuffer
- Buffer to fill with data- See Also:
InputStream.read(byte[])
read
public final int read(byte[] aBuffer,
int off,
int len)
throws java.io.IOException
- Takes care, that always the full amount of data is read (if possible).
Blocks until it succeeds.
- Overrides:
- read in class java.io.FilterInputStream
- Parameters:
aBuffer
- Buffer to keep dataoff
- Offset in bufferlen
- Length of data to read- See Also:
InputStream.read(byte[], int, int)
close
public final void close()
throws java.io.IOException
- Overrides:
- close in class java.io.FilterInputStream
- See Also:
InputStream.close()
skip
public final long skip(long n)
throws java.io.IOException
- Overrides:
- skip in class java.io.FilterInputStream
- See Also:
InputStream.skip(long)