org.exist.util
Class FileInputSource

java.lang.Object
  extended by org.xml.sax.InputSource
      extended by org.exist.util.EXistInputSource
          extended by org.exist.util.FileInputSource

public class FileInputSource
extends EXistInputSource


Constructor Summary
FileInputSource()
          Empty constructor
FileInputSource(File file)
          Constructor which calls setFile(File)
 
Method Summary
 void close()
           
 InputStream getByteStream()
          This method was re-implemented to open a new GZIPInputStream each time it is called.
 long getByteStreamLength()
           
 File getFile()
          If a file source has been set, the File object used for that is returned
 String getSymbolicPath()
           
 void setByteStream(InputStream is)
          This method now does nothing, so collateral effects from superclass with this one are avoided
 void setCharacterStream(Reader r)
          This method now does nothing, so collateral effects from superclass with this one are avoided
 void setFile(File file)
          This method sets the File object used to get the uncompressed stream of data
 void setSystemId(String systemId)
          This method now does nothing, so collateral effects from superclass with this one are avoided
 
Methods inherited from class org.xml.sax.InputSource
getCharacterStream, getEncoding, getPublicId, getSystemId, setEncoding, setPublicId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileInputSource

public FileInputSource()
Empty constructor


FileInputSource

public FileInputSource(File file)
Constructor which calls setFile(File)

Parameters:
file - The file passed to setFile(File)
Method Detail

getFile

public File getFile()
If a file source has been set, the File object used for that is returned

Returns:
The File object.

setFile

public void setFile(File file)
This method sets the File object used to get the uncompressed stream of data

Parameters:
file - The File object pointing to the GZIP file.

getByteStream

public InputStream getByteStream()
This method was re-implemented to open a new GZIPInputStream each time it is called.

Overrides:
getByteStream in class InputSource
Returns:
If the file was set, and it could be opened, and it was a correct gzip file, a GZIPInputStream object. null, otherwise.

close

public void close()
Specified by:
close in class EXistInputSource

setByteStream

public void setByteStream(InputStream is)
This method now does nothing, so collateral effects from superclass with this one are avoided

Overrides:
setByteStream in class InputSource

setCharacterStream

public void setCharacterStream(Reader r)
This method now does nothing, so collateral effects from superclass with this one are avoided

Overrides:
setCharacterStream in class InputSource

setSystemId

public void setSystemId(String systemId)
This method now does nothing, so collateral effects from superclass with this one are avoided

Overrides:
setSystemId in class InputSource

getByteStreamLength

public long getByteStreamLength()
Specified by:
getByteStreamLength in class EXistInputSource

getSymbolicPath

public String getSymbolicPath()
Specified by:
getSymbolicPath in class EXistInputSource


Copyright (C) Wolfgang Meier. All rights reserved.