public class MarcDirStreamReader extends Object implements MarcReader
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 and Description |
|---|
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.
|
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..public boolean hasNext()
hasNext in interface MarcReaderpublic Record next()
next in interface MarcReaderCopyright © 2014 FreeLibrary. All Rights Reserved.