public class UnclosableCursorStream
extends org.mule.runtime.api.streaming.bytes.CursorStream
CursorStream that decorates a CursorStream so that it cannot be closed . For example, this
implementation can be used in operation method parameters, where we don't want the extension developer to close the underlying
CursorStream| Constructor and Description |
|---|
UnclosableCursorStream(org.mule.runtime.api.streaming.bytes.CursorStream delegate) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
long |
getPosition() |
org.mule.runtime.api.streaming.CursorProvider |
getProvider() |
boolean |
isReleased() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
release() |
void |
reset() |
void |
seek(long position) |
long |
skip(long n) |
public UnclosableCursorStream(org.mule.runtime.api.streaming.bytes.CursorStream delegate)
public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void mark(int readlimit)
mark in class InputStreampublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStreampublic long getPosition()
public void seek(long position)
throws IOException
IOExceptionpublic void release()
public boolean isReleased()
public org.mule.runtime.api.streaming.CursorProvider getProvider()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface org.mule.runtime.api.streaming.Cursorclose in class InputStreamIOExceptionCopyright © 2003–2024 MuleSoft, Inc.. All rights reserved.