Methods Summary |
---|
protected void | assertPortIsOpen()
if (!isOpen()) {
throw new RuntimeException("Illegal operation on closed " + this + "!");
}
|
protected void | checkFrameManager(Frame frame, FilterContext context)
if (frame.getFrameManager() != null
&& frame.getFrameManager() != context.getFrameManager()) {
throw new RuntimeException("Frame " + frame + " is managed by foreign FrameManager! ");
}
|
protected void | checkFrameType(Frame frame, boolean forceCheck)
if ((mChecksType || forceCheck)
&& mPortFormat != null
&& !frame.getFormat().isCompatibleWith(mPortFormat)) {
throw new RuntimeException("Frame passed to " + this + " is of incorrect type! "
+ "Expected " + mPortFormat + " but got " + frame.getFormat());
}
|
public abstract void | clear()
|
public void | close()
if (mIsOpen) {
if (mLogVerbose) Log.v(TAG, "Closing " + this);
}
mIsOpen = false;
|
public abstract boolean | filterMustClose()
|
public android.filterfw.core.Filter | getFilter()
return mFilter;
|
public java.lang.String | getName()
return mName;
|
public android.filterfw.core.FrameFormat | getPortFormat()
return mPortFormat;
|
public abstract boolean | hasFrame()
|
public boolean | isAttached()
return mFilter != null;
|
public boolean | isBlocking()
return mIsBlocking;
|
public boolean | isOpen()
return mIsOpen;
|
public abstract boolean | isReady()
|
public void | open()
if (!mIsOpen) {
if (mLogVerbose) Log.v(TAG, "Opening " + this);
}
mIsOpen = true;
|
public abstract Frame | pullFrame()
|
public abstract void | pushFrame(Frame frame)
|
public void | setBlocking(boolean blocking)
mIsBlocking = blocking;
|
public void | setChecksType(boolean checksType)
mChecksType = checksType;
|
public abstract void | setFrame(Frame frame)
|
public void | setPortFormat(android.filterfw.core.FrameFormat format)
mPortFormat = format;
|
public java.lang.String | toString()
return "port '" + mName + "' of " + mFilter;
|