@XmlHints(allowTopLevelDefinition=true) public class CustomClassLoadingLengthProtocol extends LengthProtocol
LENGTH_EXCEEDEDbufferSize, UNLIMITEDEOF, NO_MAX_LENGTH, NO_STREAM, objectSerializer, rethrowExceptionOnRead, STREAM_OK, streamOk| Constructor and Description |
|---|
CustomClassLoadingLengthProtocol() |
| Modifier and Type | Method and Description |
|---|---|
ClassLoader |
getClassLoader() |
InputStream |
read(InputStream is)
It consumes the socket
InputStream according to this#consume(InputStream) and then wraps the result into a
ByteArrayInputStream. |
void |
setClassLoader(ClassLoader classLoader) |
isRepeat, writeByteArrayconsume, remaining, writecopy, copy, nullIfEmptyArray, safeRead, safeRead, setObjectSerializerpublic InputStream read(InputStream is) throws IOException
LengthProtocolInputStream according to this#consume(InputStream) and then wraps the result into a
ByteArrayInputStream.read in interface TcpProtocolread in class LengthProtocolis - the input streamnull if this#consume(InputStream) throws an IOException and rethrowExceptionOnRead is
not setIOException - is thrown if rethrowExceptionOnRead is setpublic ClassLoader getClassLoader()
public void setClassLoader(ClassLoader classLoader)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.