iso8211 0-1-0 by Weft

uk.co.weft.iso8211
Class Reader

java.lang.Object
  |
  +--uk.co.weft.iso8211.Reader

public class Reader
extends java.lang.Object

A reader which can read one kind of value from the stream. TODO: Should this class exist? Should it be merged into SubField?

Version:
$Revision: 1.3 $ This revision: $Author: simon $
  $Log: Reader.java,v $
  Revision 1.3  2002/11/01 14:46:09  simon
  Much better! Now parsing most fields reasonably well.

  Revision 1.2  2002/10/31 19:25:22  simon


  This package of work is to take a parser which correctly recognised
  all the record and field boundaries, and try to make it read actual
  data. The DDR is now reading correctly (I believe) but the data are
  not being read, primarily because (I think) I'm not correctly making
  use of the data I read from the DDR.

  Revision 1.1.1.1  2002/10/29 11:27:33  simon
  More or less parses

  
Author:
Simon Brooke (simon@jasmine.org.uk)

Constructor Summary
Reader(java.lang.String tag, java.lang.String valuetype, int precision, int delimiter, int subtype, boolean debug)
          create a new reader for a datum of this type
 
Method Summary
 Value read(ISO8211InputStream in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Reader

public Reader(java.lang.String tag,
              java.lang.String valuetype,
              int precision,
              int delimiter,
              int subtype,
              boolean debug)
       throws FormatException
create a new reader for a datum of this type
Parameters:
tag - the subfield tag for this datum
valuetype - the type of value to be read; must be a class name within the package uk.co.weft.iso8211.values
precision - the number of bytes to read, or -1 if datum is delimited
delimiter - the delimiter to use, or -1 if either delimiter is UNIT_TERMINATOR or value is fixed width
subtype - the subtype of this value - only relevent to binary data
debug - whether or not to output verbose debugging information
Method Detail

read

public Value read(ISO8211InputStream in)
           throws java.io.IOException,
                  FormatException

iso8211 0-1-0 by Weft