php    php100   android
當前位置:首頁 » java.io包 »

Java.io.OutputStream類

評論  編輯

The java.util.OutputStream class is the superclass of all classes representing an output stream of bytes. An output stream accepts output bytes and sends them to some sink.Applications that need to define a subclass of OutputStream must always provide at least a method that writes one byte of output.

類聲明

以下是聲明java.util.OutputStream class:

public abstract class OutputStream
  extends Object
    implements Closeable, Flushable

類構造方法

S.N.構造方法 & 詳細描述
1OutputStream()
Single Constructor.

類方法

S.N.方法 & 描述
1 void close()
This method closes this output stream and releases any system resources associated with this stream.
2 void flush()
This method flushes this output stream and forces any buffered output bytes to be written out.
3 void write(byte[] b)
This method writes b.length bytes from the specified byte array to this output stream.
4 void write(byte[] b, int off, int len)
This method writes len bytes from the specified byte array starting at offset off to this output stream.
5 abstract void write(int b)
This method writes the specified byte to this output stream.

方法繼承

此類從以下類繼承了上麵列出的方法

  • java.util.Object


貢獻/合作者

正在開放中...
 

評論(條)

  • 還冇有評論!