@ThreadSafe public class LockInputStream extends DecoratingInputStream
Lock.LockOutputStreamin| Modifier | Constructor and Description |
|---|---|
protected |
LockInputStream(Lock lock) |
|
LockInputStream(Lock lock,
InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
read, toStringprotected LockInputStream(Lock lock)
public LockInputStream(Lock lock, @WillCloseWhenClosed InputStream in)
public int available()
throws IOException
available in class DecoratingInputStreamIOException@DischargesObligation
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class DecoratingInputStreamIOExceptionpublic void mark(int readlimit)
mark in class DecoratingInputStreampublic boolean markSupported()
markSupported in class DecoratingInputStreampublic int read()
throws IOException
read in class DecoratingInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class DecoratingInputStreamIOExceptionpublic void reset()
throws IOException
reset in class DecoratingInputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class DecoratingInputStreamIOExceptionCopyright © 2012–2014 Schlichtherle IT Services. All rights reserved.