public abstract class ASNObject
extends java.lang.Object
| Constructor and Description |
|---|
ASNObject() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
decode(java.io.DataInputStream is)
decodes the data from the InputStream and writes it to an object
|
abstract void |
encode(java.io.DataOutputStream os)
encodes this object and writes it to the stream os.
|
boolean |
isOptional()
returns if this object is optional
|
boolean |
isSelected()
returns if this object is selected
|
void |
setOptional()
Marks this object as optional.
|
void |
setSelected()
Marks this object as selected.
|
protected void |
setSelected(boolean selected)
set selected
|
public abstract void encode(java.io.DataOutputStream os)
throws java.io.IOException
os - output streamjava.io.IOException - if something went wrong while writing to the streampublic abstract boolean decode(java.io.DataInputStream is)
throws java.io.IOException
is - input streamjava.io.IOException - if something went wrong while reading from the streampublic void setOptional()
public void setSelected()
protected void setSelected(boolean selected)
selected - true if selectedpublic boolean isSelected()
public boolean isOptional()