org.jpos.iso.packager
Class CTCSubElementPackager

java.lang.Object
  extended by org.jpos.iso.ISOBasePackager
      extended by org.jpos.iso.packager.ISOBaseValidatingPackager
          extended by org.jpos.iso.packager.CTCSubElementPackager
All Implemented Interfaces:
ISOPackager, ISOValidator, LogSource

public class CTCSubElementPackager
extends ISOBaseValidatingPackager

Test validatingPackager for subelements in field 48.

Title: jPOS

Description: Java Framework for Financial Systems

Copyright: Copyright (c) 2000 jPOS.org. All rights reserved.

Company: www.jPOS.org

Version:
1.0
Author:
Jose Eduardo Leon

Field Summary
 
Fields inherited from class org.jpos.iso.packager.ISOBaseValidatingPackager
fldVld, msgVld
 
Fields inherited from class org.jpos.iso.ISOBasePackager
fld, headerLength, logger, realm
 
Constructor Summary
CTCSubElementPackager()
           
 
Method Summary
protected  boolean emitBitMap()
          Always return false

 byte[] pack(ISOComponent c)
           
 int unpack(ISOComponent m, byte[] b)
           
 ISOComponent validate(ISOComponent c)
          Validate an ISOComponent.
 
Methods inherited from class org.jpos.iso.packager.ISOBaseValidatingPackager
setFieldValidator, setMsgValidator
 
Methods inherited from class org.jpos.iso.ISOBasePackager
createISOMsg, getBitMapfieldPackager, getDescription, getFieldDescription, getFieldPackager, getFirstField, getHeaderLength, getLogger, getMaxValidField, getRealm, setFieldPackager, setFieldPackager, setHeaderLength, setLogger, unpack
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CTCSubElementPackager

public CTCSubElementPackager()
Method Detail

pack

public byte[] pack(ISOComponent c)
            throws ISOException
Specified by:
pack in interface ISOPackager
Overrides:
pack in class ISOBasePackager
Parameters:
c - the Component to pack
Returns:
Message image
Throws:
ISOException - on error

unpack

public int unpack(ISOComponent m,
                  byte[] b)
           throws ISOException
Specified by:
unpack in interface ISOPackager
Overrides:
unpack in class ISOBasePackager
Parameters:
m - the Container of this message
b - ISO message image
Returns:
consumed bytes
Throws:
ISOException - on error

emitBitMap

protected boolean emitBitMap()
Always return false

Overrides:
emitBitMap in class ISOBasePackager
Returns:
true if BitMap have to be emited

validate

public ISOComponent validate(ISOComponent c)
                      throws ISOException
Description copied from interface: ISOValidator
Validate an ISOComponent.

Specified by:
validate in interface ISOValidator
Overrides:
validate in class ISOBaseValidatingPackager
Throws:
ISOException


Copyright © 1998-2012 jPOS.org. All Rights Reserved.