public class StreamPort extends InputPort
mSourcePort
mChecksType, mFilter, mIsBlocking, mIsOpen, mName, mPortFormat
Constructor and Description |
---|
StreamPort(Filter filter,
String name) |
Modifier and Type | Method and Description |
---|---|
protected void |
assignFrame(Frame frame,
boolean persistent) |
void |
clear() |
boolean |
hasFrame() |
Frame |
pullFrame() |
void |
pushFrame(Frame frame) |
void |
setFrame(Frame frame) |
String |
toString()
Returns a string representation of the object.
|
void |
transfer(FilterContext context) |
acceptsFrame, close, filterMustClose, getSourceFilter, getSourceFormat, getSourcePort, getTarget, isConnected, isReady, open, setSourcePort
assertPortIsOpen, checkFrameManager, checkFrameType, getFilter, getName, getPortFormat, isAttached, isBlocking, isOpen, setBlocking, setChecksType, setPortFormat
public void clear()
clear
in class FilterPort
public void setFrame(Frame frame)
setFrame
in class FilterPort
public void pushFrame(Frame frame)
pushFrame
in class FilterPort
protected void assignFrame(Frame frame, boolean persistent)
public Frame pullFrame()
pullFrame
in class FilterPort
public boolean hasFrame()
hasFrame
in class FilterPort
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
toString
in class FilterPort
public void transfer(FilterContext context)