|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.osgi.internal.signedcontent.BERProcessor
public class BERProcessor
This is a simple class that processes BER structures. This class uses BER processing as outlined in X.690.
| Field Summary | |
|---|---|
boolean |
constructed
True if this is a structure for a constructed encoding. |
byte |
tag
The tag type. |
| Constructor Summary | |
|---|---|
BERProcessor(byte[] buffer,
int offset,
int len)
Constructs a BERProcessor to operate on the passed buffer. |
|
| Method Summary | |
|---|---|
boolean |
endOfSequence()
|
byte[] |
getBytes()
Get a copy of the bytes in the content of the current structure. |
BigInteger |
getIntValue()
Gets the content from the current structure as an int. |
int[] |
getObjId()
Gets the content from the current structure as an object id (int[]). |
String |
getString()
Gets the content from the current structure as a String. |
void |
processStructure()
Parse the structure found at the current offset into buffer. |
BERProcessor |
stepInto()
Returns a BERProcessor for the content of the current structure. |
void |
stepOver()
|
String |
toString()
Returns a String representation of the current BER structure. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public boolean constructed
public byte tag
| Constructor Detail |
|---|
public BERProcessor(byte[] buffer,
int offset,
int len)
throws SignatureException
buffer - the buffer containing the BER structures.offset - the offset into buffer to the start of the first structure.len - the length of the BER structure.
SignatureException| Method Detail |
|---|
public void processStructure()
throws SignatureException
offset into buffer.
Most methods, constructor, and stepinto, will call this method automatically. If
offset is modified outside of those methods, this method will need to
be invoked.
SignatureExceptionpublic String toString()
toString in class ObjectObject.toString()
public BERProcessor stepInto()
throws SignatureException
SignatureException
public void stepOver()
throws SignatureException
SignatureExceptionpublic boolean endOfSequence()
public String getString()
public BigInteger getIntValue()
public int[] getObjId()
public byte[] getBytes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||