public class FtpSlowInputStream1 extends InputStream
| Modifier and Type | Field and Description |
|---|---|
protected int |
blockSize |
protected int |
bytesPerSec |
protected InputStream |
nativeInputStream |
protected int |
readed |
| Constructor and Description |
|---|
FtpSlowInputStream1(InputStream nativeInputStream,
int bytesPerSec) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
void |
mark(int markVal) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] buffer) |
int |
read(byte[] buffer,
int offset,
int size) |
void |
reset() |
long |
skip(long skipVal) |
protected void |
tryWaiting() |
protected InputStream nativeInputStream
protected int bytesPerSec
protected int blockSize
protected int readed
public FtpSlowInputStream1(InputStream nativeInputStream, int bytesPerSec)
protected void tryWaiting()
public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] buffer)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] buffer,
int offset,
int size)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long skipVal)
throws IOException
skip in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic void mark(int markVal)
mark in class InputStreampublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStreamCopyright © 2016 eXo Platform SAS. All Rights Reserved.