|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AsnBerDecodingContext
Method Summary | |
---|---|
void |
addDecodingListener(AsnBerDecodingListener listener)
Adds a listener to be notified of events when parsing with this context. |
ReadOnlyCollection<AsnBerDecodingListener> |
getDecodingListeners()
Access to the registered listeners. |
AsnBerInputStream |
getInput()
|
void |
pop()
Pops the top of the stack |
void |
push(AsnBerNode node)
Pushes the given node onto the stack of open tags. |
void |
removeDecodingListener(AsnBerDecodingListener listener)
Removes a listener from this context. |
void |
setDecodeToFloatIfPossible(boolean decodeToFloatIfPossible)
Determines whether the decoder should attempt to store REAL values in a java float if precision allows it. |
void |
setFailFast(boolean failFast)
Determines whether to immediately throw an exception when inconsistent length information is detected (child tags which exceed their parents length). |
void |
setListeningToEndOfContentTags(boolean listenToEndOfContentTags)
Determines whether the listeners should be notified when end-of-content markers are encountered during decoding of indefinite length tags. |
void |
setSkipRestOfPDUInCaseOfFailure(boolean skipRestOfPDUInCaseOfFailure)
Determines whether it should be attempted to 'recover' from an erroneous PDU in the stream by skipping the rest of its contents, thereby 'seeking' to the beginning of the next pdu. |
void |
setTruncateChildLength(boolean truncateChildLength)
Determines whether to truncate the length of children if they exceed the length of their parent. |
Methods inherited from interface ch.panter.li.bi.asn.ber.AsnBerDecodingContextInfo |
---|
getCurrentDecodingPosition, getLastPDUInfo, getOpenTagNodes, isDecodeToFloatIfPossible, isFailFast, isListeningToEndOfContentTags, isSkipRestOfPDUInCaseOfFailure, isTruncateChildLength |
Methods inherited from interface ch.panter.li.bi.asn.AsnDecodingContextInfo |
---|
getContextDescriptor, getOpenTags, getSyntax, isPDU |
Method Detail |
---|
void setListeningToEndOfContentTags(boolean listenToEndOfContentTags)
listenToEndOfContentTags
- the new modevoid setFailFast(boolean failFast)
failFast
- the new modevoid setSkipRestOfPDUInCaseOfFailure(boolean skipRestOfPDUInCaseOfFailure)
skipRestOfPDUInCaseOfFailure
- the new modevoid setTruncateChildLength(boolean truncateChildLength)
truncateChildLength
- the new modevoid setDecodeToFloatIfPossible(boolean decodeToFloatIfPossible)
decodeToFloatIfPossible
- the new modeAsnBerInputStream getInput()
void push(AsnBerNode node)
node
- the node to push onto the stackvoid pop()
void addDecodingListener(AsnBerDecodingListener listener)
listener
- the listener to addReadOnlyCollection<AsnBerDecodingListener> getDecodingListeners()
void removeDecodingListener(AsnBerDecodingListener listener)
listener
- the listener to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |