OutputStream

                                  
    java.lang.Object                             
     |                            
     |--OutputStream                         
         |                        
         |--ByteArrayOutputStream                     
         |                        
         |--FileOutputStream                     
         |                        
         |--FilterOutputStream                     
         |                        
         |--ObjectOutputStream                     
         |                        
         |--PipedOutputStream                     
                                  

This abstract 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.

ReturnMethodSummary
voidclose()Closes this output stream and releases any system resources associated with this stream.
voidflush()Flushes this output stream and forces any buffered output bytes to be written out.
voidwrite(byte[] b)Writes b.length bytes from the specified byte array to this output stream.
voidwrite(byte[] b, int off, int len)Writes len bytes from the specified byte array starting at offset off to this output stream.
abstract voidwrite(int b)Writes the specified byte to this output stream.
Revised from Open JDK source code
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.