cz.dhl.io
Interface CoOpen

All Known Subinterfaces:
CoFile
All Known Implementing Classes:
FtpFile, LocalFile

public interface CoOpen

Defines interface to get input / output stream on CoFile objects.

Version:
0.72 08/10/2003
Author:
Bea Petrovicova
See Also:
CoFile

Method Summary
 CoConsole getConsole()
          Gets console if implemented or null.
 char getDataType()
          Get type of data transfer.
 java.io.InputStream getInputStream()
          Returns an input stream for this file.
 java.io.OutputStream getOutputStream()
          Returns an output stream for this file.
 java.io.OutputStream getOutputStream(boolean append)
          Returns an output stream for this file.
 CoFile newFileChild(java.lang.String child)
          Creates a new file instance from this abstract pathname and a child string.
 CoFile newFileRename(java.lang.String name)
          Creates a new file instance from a parent of this abstract pathname and a name string.
 

Method Detail

getConsole

public CoConsole getConsole()
Gets console if implemented or null.


getDataType

public char getDataType()
Get type of data transfer.

Returns:
One of following optional values: 'A'=ASCII, 'I'=BINARY;

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Returns an input stream for this file.

Throws:
java.io.IOException

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Returns an output stream for this file.

Throws:
java.io.IOException

getOutputStream

public java.io.OutputStream getOutputStream(boolean append)
                                     throws java.io.IOException
Returns an output stream for this file.

Throws:
java.io.IOException

newFileChild

public CoFile newFileChild(java.lang.String child)
Creates a new file instance from this abstract pathname and a child string.


newFileRename

public CoFile newFileRename(java.lang.String name)
Creates a new file instance from a parent of this abstract pathname and a name string.



Available from sourceforge http://sourceforge.net/projects/jvftp under the terms of GNU Lesser General Public License (LGPL).