org.millscript.commons.vfs.protocols.ftp
Class FtpFile

java.lang.Object
  extended by org.millscript.commons.vfs.AbstractVEntry<V>
      extended by org.millscript.commons.vfs.AbstractVFile<FtpVolume>
          extended by org.millscript.commons.vfs.protocols.ftp.FtpFile
All Implemented Interfaces:
org.millscript.commons.alert.AlertDecorator, VEntry, VFile

public class FtpFile
extends AbstractVFile<FtpVolume>

This class implements a virtual filesystem file for an FTP filesystem file.


Method Summary
 boolean exists()
          Tests to see if the entry exits.
 java.io.OutputStream getAppendOutputStream()
          Returns an output stream for appending to the existing file contents.
 java.io.InputStream getInputStream()
          Returns an input stream for reading the file contents.
 java.io.OutputStream getOutputStream()
          Returns an ouptut stream for writing the file contents.
 
Methods inherited from class org.millscript.commons.vfs.AbstractVFile
appendRelativePath, appendRelativePathOnVolume, appendURI, decorate, getAppendWriter, getContentMIMEType, getReader, getWriter, toLocal, toString
 
Methods inherited from class org.millscript.commons.vfs.AbstractVEntry
appendAbsolutePath, appendAbsolutePathOnVolume, getAbsolutePath, getAbsolutePathOnVolume, getMIMEType, getMIMETypeHandler, getName, getParent, getRelativePath, getRelativePathOnVolume, getURI, getVolume
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.millscript.commons.vfs.VEntry
appendAbsolutePath, appendAbsolutePathOnVolume, getAbsolutePath, getAbsolutePathOnVolume, getMIMEType, getMIMETypeHandler, getName, getParent, getRelativePath, getRelativePathOnVolume, getURI, getVolume
 

Method Detail

exists

public boolean exists()
Description copied from interface: VEntry
Tests to see if the entry exits. This method is specific to the type of entry represented. For instance, if the entry is a file this method will only be true if the entry exists and is a file.

Returns:
true if this entry exits and false otherwise
See Also:
VEntry.exists()

getAppendOutputStream

public java.io.OutputStream getAppendOutputStream()
Description copied from interface: VFile
Returns an output stream for appending to the existing file contents.

Returns:
an OutputStream ready to append to the file contents
See Also:
VFile.getAppendOutputStream()

getInputStream

public java.io.InputStream getInputStream()
Description copied from interface: VFile
Returns an input stream for reading the file contents.

Returns:
an InputStream ready to read the file contents
See Also:
VFile.getInputStream()

getOutputStream

public java.io.OutputStream getOutputStream()
Description copied from interface: VFile
Returns an ouptut stream for writing the file contents.

Returns:
an OutputStream ready to write the file contents
See Also:
VFile.getOutputStream()


Copyright © 2005-2007 Open World Ltd. All Rights Reserved.