Updated Javadoc

This commit is contained in:
Trustin Lee 2008-12-17 08:55:57 +00:00
parent 49fb59fe32
commit f996be932a
4 changed files with 9 additions and 7 deletions

View File

@ -38,7 +38,7 @@ import org.jboss.netty.handler.codec.frame.FrameDecoder;
* Transforms a received message into another message. Please note that this
* decoder must be used with a proper {@link FrameDecoder} such as
* {@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>
* {@link ChannelPipeline} pipeline = ...;
*

View File

@ -34,8 +34,8 @@ import org.jboss.netty.handler.codec.frame.DelimiterBasedFrameDecoder;
import org.jboss.netty.handler.codec.frame.Delimiters;
/**
* Transforms a received message into another message. A typical decoder setup
* would be:
* Transforms a received message into another message. A typical setup for
* TCP/IP would be:
* <pre>
* {@link ChannelPipeline} pipeline = ...;
*

View File

@ -38,8 +38,8 @@ import org.jboss.netty.handler.codec.oneone.OneToOneDecoder;
* Decodes a received {@link ChannelBuffer} into a {@link String}. Please
* note that this decoder must be used with a proper {@link FrameDecoder}
* 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
* protocol in a TCP/IP socket would be:
* transport such as TCP/IP. A typical setup for a text-based line protocol
* in a TCP/IP socket would be:
* <pre>
* {@link ChannelPipeline} pipeline = ...;
*

View File

@ -37,8 +37,7 @@ import org.jboss.netty.handler.codec.oneone.OneToOneEncoder;
/**
* Encodes the requested {@link String} into a {@link ChannelBuffer}.
* The typical decoder setup for a text-based line protocol in a TCP/IP socket
* would be:
* The typical setup for a text-based line protocol in a TCP/IP socket would be:
* <pre>
* {@link ChannelPipeline} pipeline = ...;
*
@ -70,6 +69,9 @@ public class StringEncoder extends OneToOneEncoder {
private final String charsetName;
/**
* Creates a new instance with the current system character set.
*/
public StringEncoder() {
this(Charset.defaultCharset());
}