已过时的 API


目录
已过时的类
org.jboss.netty.handler.codec.serialization.CompatibleObjectDecoder
          该解码器有个已知严重的bug,在有些情况下会解码失败并抛出一个随机的异常.不管什么时候都应该避免使用.唯一的解决方法是使用 ObjectEncoder,ObjectDecoder, ObjectEncoderOutputStream替换 CompatibleObjectEncoder,CompatibleObjectDecoder, ObjectInputStream,ObjectOutputStream .这个解决方法需要客户端和服务端同时被修改. 
 

已过时的注释类型
org.jboss.netty.channel.ChannelPipelineCoverage
          使用ChannelHandler.Sharable代替. 
 

已过时的方法
org.jboss.netty.handler.ssl.SslHandler.close(Channel)
          已被SslHandler.close()代替. 
org.jboss.netty.buffer.ChannelBuffers.copiedBuffer(ByteOrder, String, String)
          使用ChannelBuffers.copiedBuffer(ByteOrder, CharSequence, Charset)代替. 
org.jboss.netty.buffer.ChannelBuffers.copiedBuffer(String, String)
          使用ChannelBuffers.copiedBuffer(CharSequence, Charset)代替. 
org.jboss.netty.handler.codec.http.HttpMessage.getContentLength()
          Use HttpHeaders.getContentLength(HttpMessage) instead. 
org.jboss.netty.handler.codec.http.DefaultHttpMessage.getContentLength()
           
org.jboss.netty.handler.codec.http.HttpMessage.getContentLength(long)
          Use HttpHeaders.getContentLength(HttpMessage, long) instead. 
org.jboss.netty.handler.codec.http.DefaultHttpMessage.getContentLength(long)
           
org.jboss.netty.handler.ssl.SslHandler.handshake(Channel)
          已被SslHandler.handshake()代替. 
org.jboss.netty.handler.codec.http.HttpMessage.isKeepAlive()
          Use HttpHeaders.isKeepAlive(HttpMessage) instead. 
org.jboss.netty.handler.codec.http.DefaultHttpMessage.isKeepAlive()
           
org.jboss.netty.buffer.ChannelBuffer.readBytes(ChannelBufferIndexFinder)
          以被ChannelBuffer.bytesBefore(ChannelBufferIndexFinder)ChannelBuffer.readBytes(int)代替. 
org.jboss.netty.buffer.AbstractChannelBuffer.readBytes(ChannelBufferIndexFinder)
           
org.jboss.netty.handler.codec.serialization.ObjectDecoderInputStream.readLine()
           
org.jboss.netty.buffer.ChannelBuffer.readSlice(ChannelBufferIndexFinder)
          使用ChannelBuffer.bytesBefore(ChannelBufferIndexFinder)ChannelBuffer.readSlice(int)代替. 
org.jboss.netty.buffer.AbstractChannelBuffer.readSlice(ChannelBufferIndexFinder)
           
org.jboss.netty.buffer.ChannelBuffer.skipBytes(ChannelBufferIndexFinder)
          使用ChannelBuffer.bytesBefore(ChannelBufferIndexFinder)ChannelBuffer.skipBytes(int)代替. 
org.jboss.netty.buffer.AbstractChannelBuffer.skipBytes(ChannelBufferIndexFinder)
           
org.jboss.netty.buffer.ChannelBuffer.toString(int, int, String)
          使用ChannelBuffer.bytesBefore(int, int, ChannelBufferIndexFinder)ChannelBuffer.toString(int, int, Charset) 代替. 
org.jboss.netty.buffer.AbstractChannelBuffer.toString(int, int, String)
           
org.jboss.netty.buffer.ChannelBuffer.toString(int, int, String, ChannelBufferIndexFinder)
          使用 ChannelBuffer.bytesBefore(int, int, ChannelBufferIndexFinder)ChannelBuffer.toString(int, int, Charset)代替. 
org.jboss.netty.buffer.AbstractChannelBuffer.toString(int, int, String, ChannelBufferIndexFinder)
           
org.jboss.netty.buffer.ChannelBuffer.toString(String)
          使用ChannelBuffer.toString(Charset)代替. 
org.jboss.netty.buffer.AbstractChannelBuffer.toString(String)
           
org.jboss.netty.buffer.ChannelBuffer.toString(String, ChannelBufferIndexFinder)
          使用ChannelBuffer.bytesBefore(ChannelBufferIndexFinder)ChannelBuffer.toString(int, int, Charset)代替. 
org.jboss.netty.buffer.AbstractChannelBuffer.toString(String, ChannelBufferIndexFinder)
           
 

已过时的构造方法
org.jboss.netty.handler.codec.http.HttpVersion(String)
          Use HttpVersion.HttpVersion(String, boolean) instead. 
org.jboss.netty.handler.codec.http.HttpVersion(String, int, int)
          Use HttpVersion.HttpVersion(String, int, int, boolean) instead. 
org.jboss.netty.handler.codec.http.QueryStringDecoder(String, String)
          Use QueryStringDecoder.QueryStringDecoder(String, Charset) instead. 
org.jboss.netty.handler.codec.http.QueryStringDecoder(URI, String)
          Use QueryStringDecoder.QueryStringDecoder(URI, Charset) instead. 
org.jboss.netty.handler.codec.http.QueryStringEncoder(String, String)
          Use QueryStringEncoder.QueryStringEncoder(String, Charset) instead. 
org.jboss.netty.handler.codec.string.StringDecoder(String)
          使用StringDecoder.StringDecoder(Charset)代替. 
org.jboss.netty.handler.codec.string.StringEncoder(String)
          使用StringEncoder.StringEncoder(Charset)代替.