Class LogPackager
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.jpos.iso.packager.LogPackager
- All Implemented Interfaces:
ISOPackager, LogSource, ContentHandler, DTDHandler, EntityResolver, ErrorHandler
packs/unpacks ISOMsgs from jPOS logs
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidendElement(String ns, String name, String qname) getFieldDescription(ISOComponent m, int fldNumber) getRealm()byte[]pack(ISOComponent c) voidvoidstartElement(String ns, String name, String qName, Attributes atts) intunpack(ISOComponent c, byte[] b) voidunpack(ISOComponent c, InputStream in) Methods inherited from class DefaultHandler
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContentHandler
declaration
-
Field Details
-
logger
-
realm
-
LOG_TAG
-
ISOMSG_TAG
- See Also:
-
ISOFIELD_TAG
- See Also:
-
ID_ATTR
-
VALUE_ATTR
- See Also:
-
TYPE_ATTR
-
TYPE_BINARY
- See Also:
-
TYPE_BITMAP
- See Also:
-
-
Constructor Details
-
LogPackager
- Throws:
ISOException
-
-
Method Details
-
pack
- Specified by:
packin interfaceISOPackager- Parameters:
c- the Component to pack- Returns:
- Message image
- Throws:
ISOException- on error
-
unpack
- Specified by:
unpackin interfaceISOPackager- Parameters:
c- the Container of this messageb- ISO message image- Returns:
- consumed bytes
- Throws:
ISOException- on error
-
unpack
- Specified by:
unpackin interfaceISOPackager- Throws:
ISOExceptionIOException
-
startElement
- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
getFieldDescription
- Specified by:
getFieldDescriptionin interfaceISOPackager- Parameters:
m- the Container (i.e. an ISOMsg)fldNumber- the Field Number- Returns:
- Field Description
-
getDescription
- Specified by:
getDescriptionin interfaceISOPackager- Returns:
- Packager's Description
-
setLogger
-
getRealm
-
getLogger
-
createISOMsg
- Specified by:
createISOMsgin interfaceISOPackager- Returns:
- an ISOMsg
-