Package org.marc4j.marcxml
Class MarcSource
- java.lang.Object
-
- org.marc4j.marcxml.MarcSource
-
-
Constructor Summary
Constructors Constructor Description MarcSource()
Default constructorMarcSource(File file)
Create a new instance.MarcSource(InputStream stream)
Create a new instance.MarcSource(Reader reader)
Create a new instance.MarcSource(String systemID)
Create a new instance.MarcSource(MarcReader marcReader, File file)
Create a new instance.MarcSource(MarcReader marcReader, InputStream stream)
Create a new instance.MarcSource(MarcReader marcReader, Reader reader)
Create a new instance.MarcSource(MarcReader marcReader, String systemID)
Create a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
getInputStream()
Returns the InputStream object.MarcReader
getMarcReader()
Returns the MarcReader object.String
getPublicId()
Returns the public identifier.Reader
getReader()
Returns the Reader object.String
getSystemId()
Returns the system identifier.void
setInputStream(InputStream stream)
Sets the InputStream object.void
setMarcReader(MarcReader marcReader)
Sets the MarcReader object.void
setPublicId(String publicID)
Sets the public identifier.void
setReader(Reader reader)
Sets the Reader object.void
setSystemId(File file)
Sets the File object.void
setSystemId(String systemID)
Sets the system identifier.
-
-
-
Field Detail
-
FEATURE
public static final String FEATURE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MarcSource
public MarcSource()
Default constructor
-
MarcSource
public MarcSource(MarcReader marcReader, File file)
Create a new instance.
- Parameters:
marcReader
- theMarcReader
objectfile
- theFile
object
-
MarcSource
public MarcSource(InputStream stream)
Create a new instance.
- Parameters:
stream
- theInputStream
object
-
MarcSource
public MarcSource(MarcReader marcReader, InputStream stream)
Create a new instance.
- Parameters:
marcReader
- theMarcReader
objectstream
- theInputStream
object
-
MarcSource
public MarcSource(Reader reader)
Create a new instance.
- Parameters:
reader
- theReader
object
-
MarcSource
public MarcSource(MarcReader marcReader, Reader reader)
Create a new instance.
- Parameters:
marcReader
- theMarcReader
objectreader
- theReader
object
-
MarcSource
public MarcSource(String systemID)
Create a new instance.
- Parameters:
systemID
- the system identifier
-
MarcSource
public MarcSource(MarcReader marcReader, String systemID)
Create a new instance.
- Parameters:
marcReader
- theMarcReader
objectsystemID
- the system identifier
-
-
Method Detail
-
getInputStream
public InputStream getInputStream()
Returns the InputStream object.
- Returns:
- InputStream - the InputStream object
-
getPublicId
public String getPublicId()
Returns the public identifier.
- Returns:
- String - the public identifier
-
getReader
public Reader getReader()
Returns the Reader object.
- Returns:
- Reader - the Reader object
-
getSystemId
public String getSystemId()
Returns the system identifier.
- Specified by:
getSystemId
in interfaceSource
- Returns:
- String - the system identifier
-
getMarcReader
public MarcReader getMarcReader()
Returns the MarcReader object.
- Returns:
- MarcReader - the MarcReader object
-
setMarcReader
public void setMarcReader(MarcReader marcReader)
Sets the MarcReader object.
- Parameters:
marcReader
- theMarcReader
object
-
setInputStream
public void setInputStream(InputStream stream)
Sets the InputStream object.
- Parameters:
stream
- theInputStream
object
-
setPublicId
public void setPublicId(String publicID)
Sets the public identifier.
- Parameters:
publicID
- the public identifer
-
setReader
public void setReader(Reader reader)
Sets the Reader object.
- Parameters:
reader
- theReader
object
-
setSystemId
public void setSystemId(File file)
Sets the File object.
- Parameters:
file
- theFile
object
-
setSystemId
public void setSystemId(String systemID)
Sets the system identifier.
- Specified by:
setSystemId
in interfaceSource
- Parameters:
systemID
- the system identifier
-
-