|
Spring Integration | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.integration.ip.tcp.serializer.AbstractByteArraySerializer
org.springframework.integration.ip.tcp.serializer.ByteArrayCrLfSerializer
public class ByteArrayCrLfSerializer
Reads data in an InputStream to a byte[]; data must be terminated by \r\n (not included in resulting byte[]). Writes a byte[] to an OutputStream and adds \r\n.
| Field Summary |
|---|
| Fields inherited from class org.springframework.integration.ip.tcp.serializer.AbstractByteArraySerializer |
|---|
logger, maxMessageSize |
| Constructor Summary | |
|---|---|
ByteArrayCrLfSerializer()
|
|
| Method Summary | |
|---|---|
byte[] |
deserialize(java.io.InputStream inputStream)
Reads the data in the inputstream to a byte[]. |
void |
serialize(byte[] bytes,
java.io.OutputStream outputStream)
Writes the byte[] to the stream and appends \r\n. |
| Methods inherited from class org.springframework.integration.ip.tcp.serializer.AbstractByteArraySerializer |
|---|
checkClosure, getMaxMessageSize, setMaxMessageSize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ByteArrayCrLfSerializer()
| Method Detail |
|---|
public byte[] deserialize(java.io.InputStream inputStream)
throws java.io.IOException
SoftEndOfStreamException if the stream
is closed immediately after the \r\n (i.e. no data is in the process of
being read).
java.io.IOException
public void serialize(byte[] bytes,
java.io.OutputStream outputStream)
throws java.io.IOException
java.io.IOException
|
Spring Integration | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||