|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.marc4j.MarcDirStreamReader
public class MarcDirStreamReader
A Marc reader which instead of handling a single file of MARC records it handles a directory, which it will scan for all .mrc files, and iterate through all of them in turn.
Constructor Summary | |
---|---|
MarcDirStreamReader(File dir)
Constructs an instance that traverses the directory specified in the parameter. |
|
MarcDirStreamReader(File dir,
boolean permissive,
boolean convertToUTF8)
Constructs an instance that traverses the directory specified in the parameter. |
|
MarcDirStreamReader(File dir,
boolean permissive,
boolean convertToUTF8,
String defaultEncoding)
Constructs an instance that traverses the directory specified in the parameter. |
|
MarcDirStreamReader(String dirName)
Constructs an instance that traverses the directory specified in the parameter. |
|
MarcDirStreamReader(String dirName,
boolean permissive,
boolean convertToUTF8)
Constructs an instance that traverses the directory specified in the parameter. |
|
MarcDirStreamReader(String dirName,
boolean permissive,
boolean convertToUTF8,
String defaultEncoding)
Constructs an instance that traverses the directory specified in the parameter. |
Method Summary | |
---|---|
boolean |
hasNext()
Returns true if the iteration has more records, false otherwise. |
Record |
next()
Returns the next record in the iteration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MarcDirStreamReader(String dirName)
dirName
- - The path of the directory from which to read all of the .mrc filespublic MarcDirStreamReader(File dir)
dir
- - The path of the directory from which to read all of the .mrc filespublic MarcDirStreamReader(String dirName, boolean permissive, boolean convertToUTF8)
dirName
- - The path of the directory from which to read all of the .mrc filespermissive
- - Set to true to specify that reader should try to handle and recover
from errors in the input.convertToUTF8
- - Set to true to specify that reader should convert the records
being read to UTF-8 encoding as they are being read.public MarcDirStreamReader(File dir, boolean permissive, boolean convertToUTF8)
dir
- - The path of the directory from which to read all of the .mrc filespermissive
- - Set to true to specify that reader should try to handle and recover
from errors in the input.convertToUTF8
- - Set to true to specify that reader should convert the records
being read to UTF-8 encoding as they are being read.public MarcDirStreamReader(String dirName, boolean permissive, boolean convertToUTF8, String defaultEncoding)
dirName
- - The path of the directory from which to read all of the .mrc filespermissive
- - Set to true to specify that reader should try to handle and recover
from errors in the input.convertToUTF8
- - Set to true to specify that reader should convert the records
being read to UTF-8 encoding as they are being read.defaultEncoding
- - Specifies the character encoding that the records being read
are presumed to be in..public MarcDirStreamReader(File dir, boolean permissive, boolean convertToUTF8, String defaultEncoding)
dir
- - The path of the directory from which to read all of the .mrc filespermissive
- - Set to true to specify that reader should try to handle and recover
from errors in the input.convertToUTF8
- - Set to true to specify that reader should convert the records
being read to UTF-8 encoding as they are being read.defaultEncoding
- - Specifies the character encoding that the records being read
are presumed to be in..Method Detail |
---|
public boolean hasNext()
hasNext
in interface MarcReader
public Record next()
next
in interface MarcReader
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |