Closeable, AutoCloseable, Runnablepublic class SMYLDInputStream extends BufferedInputStream implements Runnable
| Modifier and Type | Field | Description |
|---|---|---|
static int |
DEFAULT_BLOCK_SIZE |
|
static int |
DEFAULT_SLEEP_TIME |
in| Constructor | Description |
|---|---|
SMYLDInputStream(InputStream inputStream) |
|
SMYLDInputStream(InputStream inputStream,
int BlockSize) |
|
SMYLDInputStream(InputStream inputStream,
int BlockSize,
long SleepTime) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addStreamListener(StreamListener ListenerClass) |
|
void |
close() |
|
int |
read() |
|
void |
resume() |
|
void |
run() |
|
void |
setBlockSize(int readingBlockSize) |
|
void |
stop() |
available, mark, markSupported, read, reset, skipreadreadAllBytes, readNBytes, transferTopublic static final int DEFAULT_BLOCK_SIZE
public static final int DEFAULT_SLEEP_TIME
public SMYLDInputStream(InputStream inputStream)
public SMYLDInputStream(InputStream inputStream, int BlockSize)
public SMYLDInputStream(InputStream inputStream, int BlockSize, long SleepTime)
public int read()
read in class BufferedInputStreampublic void addStreamListener(StreamListener ListenerClass)
public void stop()
public void resume()
public void close()
throws IOException
close in interface AutoCloseableclose in interface Closeableclose in class BufferedInputStreamIOExceptionpublic void setBlockSize(int readingBlockSize)
Copyright © 2019 SMYLD. All rights reserved.