BufferedOutputStream


BufferedOutputStream java.io

Java 1.0 closeable flushable

This class is a FilterOutputStream that provides output data buffering; output efficiency is increased by storing values to be written in a buffer and actually writing them out only when the buffer fills up or when the flush( ) method is called. Create a BufferedOutputStream by specifying the OutputStream that is to be buffered in the call to the constructor. See also BufferedWriter .

Figure 9-2. java.io.BufferedOutputStream

 public class  BufferedOutputStream  extends FilterOutputStream {  // Public Constructors  public  BufferedOutputStream  (OutputStream  out  );        public  BufferedOutputStream  (OutputStream  out  , int  size  );  // Public Methods Overriding FilterOutputStream  public void  flush  ( ) throws IOException;  synchronized  public void  write  (int  b  ) throws IOException;  synchronized  public void  write  (byte[ ]  b  , int  off  , int  len  ) throws IOException;  synchronized   // Protected Instance Fields  protected byte[ ]  buf  ;        protected int  count  ;   } 



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net