Save This Page
Home » cocoon-2.1.11-src » org.apache » cocoon » components » source » [javadoc | source]
org.apache.cocoon.components.source
public class: FileSource [javadoc | source]
java.lang.Object
   org.apache.avalon.framework.logger.AbstractLogEnabled
      org.apache.cocoon.components.source.AbstractStreamSource
         org.apache.cocoon.components.source.AbstractStreamWriteableSource
            org.apache.cocoon.components.source.FileSource

All Implemented Interfaces:
    WriteableSource, ModifiableSource

Deprecated! Use - the new avalon source resolving instead

A org.apache.cocoon.environment.WriteableSource for 'file:/' system IDs.
Field Summary
protected  File file    The underlying file. 
Fields inherited from org.apache.cocoon.components.source.AbstractStreamSource:
transformerFactory,  manager
Constructor:
 public FileSource(String url,
    ComponentManager manager) 
    Create a file source from a 'file:' url and a component manager.
Method from org.apache.cocoon.components.source.FileSource Summary:
canCancel,   cancel,   exists,   getContentLength,   getInputStream,   getLastModified,   getOutputStream,   getSystemId,   isHTMLContent
Methods from org.apache.cocoon.components.source.AbstractStreamWriteableSource:
canCancel,   canCancel,   cancel,   cancel,   getContentHandler
Methods from org.apache.cocoon.components.source.AbstractStreamSource:
exists,   getContentLength,   getInputSource,   getLastModified,   isHTMLContent,   recycle,   refresh,   toSAX
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cocoon.components.source.FileSource Detail:
 public boolean canCancel(OutputStream stream) 
      Deprecated!
    Always return false. To be redefined by implementations that support cancel().
 public  void cancel(OutputStream stream) throws Exception 
      Deprecated!
    Cancels the output stream.
 public boolean exists() 
      Deprecated!
 public long getContentLength() 
      Deprecated!
 public InputStream getInputStream() throws IOException, ProcessingException 
      Deprecated!
    Get the input stream for this source.
 public long getLastModified() 
      Deprecated!
 public OutputStream getOutputStream() throws IOException, ProcessingException 
      Deprecated!
    Get an output stream to write to this source. The output stream returned actually writes to a temp file that replaces the real one on close. This temp file is used as lock to forbid multiple simultaneous writes. The real file is updated atomically when the output stream is closed.
 public String getSystemId() 
      Deprecated!
    Return the unique identifer for this source
 protected boolean isHTMLContent() 
      Deprecated!
    Returns true if the file name ends with ".htm" or ".html".