coopen.java

来自「用java实现的摄像头编程」· Java 代码 · 共 49 行

JAVA
49
字号
/*
 * Version 0.70 01/04/2002
 *
 * Visit my url for update: http://www.geocities.com/beapetrovicova/
 * 
 * jFtp was developed by Bea Petrovicova <beapetrovicova@yahoo.com>.
 * The design and implementation of jFtp are available for royalty-free 
 * adoption and use. This software is provided 'as is' without any 
 * guarantees. Copyright is retained by Bea Petrovicova. Redistribution 
 * of any part of jFtp or any derivative works must include this notice.
 * 
 */
package cz.dhl.io;

import cz.dhl.ui.CoConsole;
import java.io.InputStream;
import java.io.IOException;
import java.io.OutputStream;

/**
 * Defines interface to get input /
 * output stream on CoFile objects.
 * 
 * @Version 0.70 01/04/2002
 * @author Bea Petrovicova <beapetrovicova@yahoo.com>  
 * @see CoFile
 */
public interface CoOpen
{
   /** Get type of data transfer.
    * @return One of following optional values:
    * 'A'=ASCII, 'I'=BINARY; */
   abstract public char getDataType();
   /** Returns an input stream for this file. */
   abstract public InputStream getInputStream() throws IOException; 
   /** Returns an output stream for this file. */
   abstract public OutputStream getOutputStream(boolean append) throws IOException;
   /** Returns an output stream for this file. */
   abstract public OutputStream getOutputStream() throws IOException;
   /** Creates a new file instance from this 
    * abstract pathname and a child string. */
   abstract public CoFile newFileChild(String child);
   /** Creates a new file instance from a parent 
    * of this abstract pathname and a name string. */
   abstract public CoFile newFileRename(String name);
   /** Gets console if implemented or null. */
   abstract public CoConsole getConsole();
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?