protected static class XmlDecoder.XmlStringDecoder
extends org.jboss.netty.handler.codec.oneone.OneToOneDecoder
Don't use this class directly. It is a supporting class for XmlDecoder.
不要直接用这个类,它是支撑XmlDecoder的。
Constructor and Description |
---|
XmlStringDecoder(String tagName,
Charset charset)
Constructor.
创建一个实例。 |
Modifier and Type | Method and Description |
---|---|
protected Object |
decode(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.Channel channel,
Object msg)
Get the text and process its beginning and ending to make it a clean XML text.
先取到字符串,然后把取得的字符串进一步加工,以形成头尾完整干净的XML文本。 |
protected Object decode(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.Channel channel, Object msg) throws Exception
decode
in class org.jboss.netty.handler.codec.oneone.OneToOneDecoder
Exception
Copyright © 2014. All Rights Reserved.