Updated Javadoc
This commit is contained in:
parent
49fb59fe32
commit
f996be932a
@ -38,7 +38,7 @@ import org.jboss.netty.handler.codec.frame.FrameDecoder;
|
|||||||
* Transforms a received message into another message. Please note that this
|
* Transforms a received message into another message. Please note that this
|
||||||
* decoder must be used with a proper {@link FrameDecoder} such as
|
* decoder must be used with a proper {@link FrameDecoder} such as
|
||||||
* {@link DelimiterBasedFrameDecoder} if you are using a stream-based transport
|
* {@link DelimiterBasedFrameDecoder} if you are using a stream-based transport
|
||||||
* such as TCP/IP. A typical decoder setup would be:
|
* such as TCP/IP. A typical setup for TCP/IP would be:
|
||||||
* <pre>
|
* <pre>
|
||||||
* {@link ChannelPipeline} pipeline = ...;
|
* {@link ChannelPipeline} pipeline = ...;
|
||||||
*
|
*
|
||||||
|
@ -34,8 +34,8 @@ import org.jboss.netty.handler.codec.frame.DelimiterBasedFrameDecoder;
|
|||||||
import org.jboss.netty.handler.codec.frame.Delimiters;
|
import org.jboss.netty.handler.codec.frame.Delimiters;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Transforms a received message into another message. A typical decoder setup
|
* Transforms a received message into another message. A typical setup for
|
||||||
* would be:
|
* TCP/IP would be:
|
||||||
* <pre>
|
* <pre>
|
||||||
* {@link ChannelPipeline} pipeline = ...;
|
* {@link ChannelPipeline} pipeline = ...;
|
||||||
*
|
*
|
||||||
|
@ -38,8 +38,8 @@ import org.jboss.netty.handler.codec.oneone.OneToOneDecoder;
|
|||||||
* Decodes a received {@link ChannelBuffer} into a {@link String}. Please
|
* Decodes a received {@link ChannelBuffer} into a {@link String}. Please
|
||||||
* note that this decoder must be used with a proper {@link FrameDecoder}
|
* note that this decoder must be used with a proper {@link FrameDecoder}
|
||||||
* such as {@link DelimiterBasedFrameDecoder} if you are using a stream-based
|
* such as {@link DelimiterBasedFrameDecoder} if you are using a stream-based
|
||||||
* transport such as TCP/IP. A typical decoder setup for a text-based line
|
* transport such as TCP/IP. A typical setup for a text-based line protocol
|
||||||
* protocol in a TCP/IP socket would be:
|
* in a TCP/IP socket would be:
|
||||||
* <pre>
|
* <pre>
|
||||||
* {@link ChannelPipeline} pipeline = ...;
|
* {@link ChannelPipeline} pipeline = ...;
|
||||||
*
|
*
|
||||||
|
@ -37,8 +37,7 @@ import org.jboss.netty.handler.codec.oneone.OneToOneEncoder;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Encodes the requested {@link String} into a {@link ChannelBuffer}.
|
* Encodes the requested {@link String} into a {@link ChannelBuffer}.
|
||||||
* The typical decoder setup for a text-based line protocol in a TCP/IP socket
|
* The typical setup for a text-based line protocol in a TCP/IP socket would be:
|
||||||
* would be:
|
|
||||||
* <pre>
|
* <pre>
|
||||||
* {@link ChannelPipeline} pipeline = ...;
|
* {@link ChannelPipeline} pipeline = ...;
|
||||||
*
|
*
|
||||||
@ -70,6 +69,9 @@ public class StringEncoder extends OneToOneEncoder {
|
|||||||
|
|
||||||
private final String charsetName;
|
private final String charsetName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a new instance with the current system character set.
|
||||||
|
*/
|
||||||
public StringEncoder() {
|
public StringEncoder() {
|
||||||
this(Charset.defaultCharset());
|
this(Charset.defaultCharset());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user