public class LazyTransformedInputStream extends InputStream
LazyTransformedInputStream
represents an InputStream
that
has been transformed when someone needs to read from it.
Internally, the LazyTransformedInputStream
has a pipe that is written by an
StreamTransformer
according to a TransformPolicy
.
The LazyTransformedInputStream
uses a separate thread for writing on the pipe
and delays it destruction till this InputStream
is closed of finalized. In this way
we avoid any problems with broken pipes.Constructor and Description |
---|
LazyTransformedInputStream(TransformPolicy transformPolicy,
StreamTransformer transformer) |
public LazyTransformedInputStream(TransformPolicy transformPolicy, StreamTransformer transformer) throws IOException
IOException
public int available() throws IOException
available
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
protected void finalize() throws Throwable
public void mark(int readlimit)
mark
in class InputStream
public boolean markSupported()
markSupported
in class InputStream
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public int read(byte[] b) throws IOException
read
in class InputStream
IOException
public void reset() throws IOException
reset
in class InputStream
IOException
public long skip(long n) throws IOException
skip
in class InputStream
IOException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.