public class AsciiModule
extends ModuleBase
| Modifier and Type | Field and Description |
|---|---|
protected Map<Integer,String> |
_controlCharMap |
protected ChecksumInputStream |
_cstream
PRIVATE INSTANCE FIELDS.
|
protected DataInputStream |
_dstream |
protected boolean |
_lineEndCR |
protected boolean |
_lineEndCRLF |
protected boolean |
_lineEndLF |
protected int |
_prevChar |
protected TextMDMetadata |
_textMD |
protected boolean |
_withTextMD |
| Constructor and Description |
|---|
AsciiModule()
Creates an AsciiModule.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkLineEnd(int ch)
PRIVATE INSTANCE METHODS.
|
void |
checkSignatures(File file,
InputStream stream,
RepInfo info)
Check if the digital object conforms to this Module's internal signature
information.
|
int |
parse(InputStream stream,
RepInfo info,
int parseIndex)
Parse the content of a stream digital object and store the results in
RepInfo.
|
protected ChecksumInputStream _cstream
protected DataInputStream _dstream
protected boolean _lineEndCR
protected boolean _lineEndLF
protected boolean _lineEndCRLF
protected int _prevChar
protected boolean _withTextMD
protected TextMDMetadata _textMD
public final int parse(InputStream stream, RepInfo info, int parseIndex) throws IOException
IOExceptionpublic void checkSignatures(File file, InputStream stream, RepInfo info) throws IOException
file - A File object for the object being parsedstream - An InputStream, positioned at its beginning, which is
generated from the object to be parsedinfo - A fresh RepInfo object which will be modified to reflect the
results of the testIOExceptionprotected void checkLineEnd(int ch)
Copyright © 2008–2017 The Open Preservation Foundation. All rights reserved.