public abstract class ASNObject
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
isOptional
true if the Object is Optional
|
protected boolean |
isSelected
true if the Object is selected
|
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 boolean isOptional
protected boolean isSelected
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()
public boolean isSelected()
public boolean isOptional()