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
IOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionprotected void finalize()
throws Throwable
public void mark(int readlimit)
mark in class InputStreampublic boolean markSupported()
markSupported in class InputStreampublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.