org.fusesource.stomp.codec
Class StompProtocolCodec
java.lang.Object
org.fusesource.stomp.codec.StompProtocolCodec
- All Implemented Interfaces:
- org.fusesource.hawtdispatch.transport.ProtocolCodec
public class StompProtocolCodec
- extends java.lang.Object
- implements org.fusesource.hawtdispatch.transport.ProtocolCodec
- Author:
- Hiram Chirino
| Nested classes/interfaces inherited from interface org.fusesource.hawtdispatch.transport.ProtocolCodec |
org.fusesource.hawtdispatch.transport.ProtocolCodec.BufferState |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StompProtocolCodec
public StompProtocolCodec()
setWritableByteChannel
public void setWritableByteChannel(java.nio.channels.WritableByteChannel channel)
throws java.net.SocketException
- Specified by:
setWritableByteChannel in interface org.fusesource.hawtdispatch.transport.ProtocolCodec
- Throws:
java.net.SocketException
getReadBufferSize
public int getReadBufferSize()
- Specified by:
getReadBufferSize in interface org.fusesource.hawtdispatch.transport.ProtocolCodec
getWriteBufferSize
public int getWriteBufferSize()
- Specified by:
getWriteBufferSize in interface org.fusesource.hawtdispatch.transport.ProtocolCodec
full
public boolean full()
- Specified by:
full in interface org.fusesource.hawtdispatch.transport.ProtocolCodec
is_empty
public boolean is_empty()
getWriteCounter
public long getWriteCounter()
- Specified by:
getWriteCounter in interface org.fusesource.hawtdispatch.transport.ProtocolCodec
getLastWriteSize
public int getLastWriteSize()
- Specified by:
getLastWriteSize in interface org.fusesource.hawtdispatch.transport.ProtocolCodec
write
public org.fusesource.hawtdispatch.transport.ProtocolCodec.BufferState write(java.lang.Object value)
throws java.io.IOException
- Specified by:
write in interface org.fusesource.hawtdispatch.transport.ProtocolCodec
- Throws:
java.io.IOException
flush
public org.fusesource.hawtdispatch.transport.ProtocolCodec.BufferState flush()
throws java.io.IOException
- Specified by:
flush in interface org.fusesource.hawtdispatch.transport.ProtocolCodec
- Throws:
java.io.IOException
setReadableByteChannel
public void setReadableByteChannel(java.nio.channels.ReadableByteChannel channel)
throws java.net.SocketException
- Specified by:
setReadableByteChannel in interface org.fusesource.hawtdispatch.transport.ProtocolCodec
- Throws:
java.net.SocketException
unread
public void unread(byte[] buffer)
- Specified by:
unread in interface org.fusesource.hawtdispatch.transport.ProtocolCodec
getReadCounter
public long getReadCounter()
- Specified by:
getReadCounter in interface org.fusesource.hawtdispatch.transport.ProtocolCodec
getLastReadSize
public int getLastReadSize()
- Specified by:
getLastReadSize in interface org.fusesource.hawtdispatch.transport.ProtocolCodec
read
public java.lang.Object read()
throws java.io.IOException
- Specified by:
read in interface org.fusesource.hawtdispatch.transport.ProtocolCodec
- Throws:
java.io.IOException
Copyright © 2010-2011 FuseSource, Corp.. All Rights Reserved.