@ThreadSafe public class LockInputStream extends DecoratingInputStream
Lock
.LockOutputStream
in
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, toString
protected LockInputStream(Lock lock)
public LockInputStream(Lock lock, @WillCloseWhenClosed InputStream in)
public int available() throws IOException
available
in class DecoratingInputStream
IOException
@DischargesObligation public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class DecoratingInputStream
IOException
public void mark(int readlimit)
mark
in class DecoratingInputStream
public boolean markSupported()
markSupported
in class DecoratingInputStream
public int read() throws IOException
read
in class DecoratingInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class DecoratingInputStream
IOException
public void reset() throws IOException
reset
in class DecoratingInputStream
IOException
public long skip(long n) throws IOException
skip
in class DecoratingInputStream
IOException
Copyright © 2012–2017 Schlichtherle IT Services. All rights reserved.