Methods Summary |
---|
protected synchronized void | assignFrame(Frame frame, boolean persistent)
assertPortIsOpen();
checkFrameType(frame, persistent);
if (persistent) {
if (mFrame != null) {
mFrame.release();
}
} else if (mFrame != null) {
throw new RuntimeException(
"Attempting to push more than one frame on port: " + this + "!");
}
mFrame = frame.retain();
mFrame.markReadOnly();
mPersistent = persistent;
|
public void | clear()
if (mFrame != null) {
mFrame.release();
mFrame = null;
}
|
public synchronized boolean | hasFrame()
return mFrame != null;
|
public synchronized Frame | pullFrame()
// Make sure we have a frame
if (mFrame == null) {
throw new RuntimeException("No frame available to pull on port: " + this + "!");
}
// Return a retained result
Frame result = mFrame;
if (mPersistent) {
mFrame.retain();
} else {
mFrame = null;
}
return result;
|
public void | pushFrame(Frame frame)
assignFrame(frame, false);
|
public void | setFrame(Frame frame)
assignFrame(frame, true);
|
public java.lang.String | toString()
return "input " + super.toString();
|
public synchronized void | transfer(FilterContext context)
if (mFrame != null) {
checkFrameManager(mFrame, context);
}
|