X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=third-party%2Fopenflow-codec%2Fsrc%2Fmain%2Fjava%2Forg%2Fopenflow%2Fcodec%2Fio%2FOFMessageInStream.java;fp=third-party%2Fopenflow-codec%2Fsrc%2Fmain%2Fjava%2Forg%2Fopenflow%2Fcodec%2Fio%2FOFMessageInStream.java;h=0000000000000000000000000000000000000000;hb=64fe0fbca1a6c2b77ad25f568d73a7eb64236d16;hp=16c72c9558facb4a17f2ecfb4ad546b47cb23526;hpb=8b9a3ff2bbc83941254b46b818cbbae5cc1a3a5b;p=openflowjava.git diff --git a/third-party/openflow-codec/src/main/java/org/openflow/codec/io/OFMessageInStream.java b/third-party/openflow-codec/src/main/java/org/openflow/codec/io/OFMessageInStream.java deleted file mode 100644 index 16c72c95..00000000 --- a/third-party/openflow-codec/src/main/java/org/openflow/codec/io/OFMessageInStream.java +++ /dev/null @@ -1,51 +0,0 @@ -/** - * - */ -package org.openflow.codec.io; - -import java.util.List; - -import org.openflow.codec.protocol.OFPMessage; -import org.openflow.codec.protocol.factory.OFPMessageFactory; - -/** - * Interface for reading OFMessages from a buffered stream - * - * @author Rob Sherwood (rob.sherwood@stanford.edu) - * - */ -public interface OFMessageInStream { - /** - * Read OF messages from the stream - * - * @return a list of OF Messages, empty if no complete messages are - * available, null if the stream has closed - */ - public List read() throws java.io.IOException; - - /** - * Read OF messages from the stream - * - * @param limit - * The maximum number of messages to read: 0 means all that are - * buffered - * @return a list of OF Messages, empty if no complete messages are - * available, null if the stream has closed - * - */ - public List read(int limit) throws java.io.IOException; - - /** - * Sets the OFPMessageFactory used to create messages on this stream - * - * @param factory - */ - public void setMessageFactory(OFPMessageFactory factory); - - /** - * Returns the OFPMessageFactory used to create messages on this stream - * - * @return - */ - public OFPMessageFactory getMessageFactory(); -}