public class Asn1FileHandler extends java.lang.Object implements FileHandlerIfc
Modifier and Type | Class and Description |
---|---|
class |
Asn1FileHandler.FileHeaderInfo |
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
ASN1_PROJECT_CLASS |
protected static java.lang.String |
COMPILED_PDU_CLASS |
protected static java.lang.String |
FILE_HEADER_SIZE |
protected int |
fileHeaderSize |
protected static java.lang.String |
FILENAME_NAR_ID |
protected static java.lang.String |
GET_CODER_METHOD |
protected LoggerIfc |
logger |
protected DCNode |
node |
protected NPLFieldProcessor |
nplProcessor |
protected static java.lang.String |
RECORD_HEADER_SIZE |
protected RecordDecoder |
recordDecoder |
protected int |
recordHeaderSize |
protected static java.lang.String |
RECOVERY_FILE_EXT |
protected boolean |
shutdown |
Constructor and Description |
---|
Asn1FileHandler(DCNode node,
NPLFieldProcessor nplProcessor) |
Modifier and Type | Method and Description |
---|---|
int |
getCDRLength(java.io.InputStream in) |
boolean |
processFile(java.io.File file) |
void |
setErrorFlag() |
void |
shutdown() |
void |
skip(java.io.InputStream in,
long count) |
protected LoggerIfc logger
protected DCNode node
protected NPLFieldProcessor nplProcessor
protected RecordDecoder recordDecoder
protected boolean shutdown
protected static final java.lang.String ASN1_PROJECT_CLASS
protected static final java.lang.String GET_CODER_METHOD
protected static final java.lang.String COMPILED_PDU_CLASS
protected static final java.lang.String RECOVERY_FILE_EXT
protected static final java.lang.String FILENAME_NAR_ID
protected static final java.lang.String FILE_HEADER_SIZE
protected static final java.lang.String RECORD_HEADER_SIZE
protected int fileHeaderSize
protected int recordHeaderSize
public Asn1FileHandler(DCNode node, NPLFieldProcessor nplProcessor) throws java.lang.Exception
java.lang.Exception
public boolean processFile(java.io.File file) throws java.lang.Exception
processFile
in interface FileHandlerIfc
java.lang.Exception
public void skip(java.io.InputStream in, long count) throws java.io.IOException
java.io.IOException
public int getCDRLength(java.io.InputStream in)
public void setErrorFlag()
setErrorFlag
in interface FileHandlerIfc
public void shutdown()
shutdown
in interface FileHandlerIfc