8.2 OutputStream


write()
    write(int b)
    write(byte b[])
    write(byte b[],int off,int len)
flush()
close()
Types of OutputStream
class description constructor parameter
ByteArrayOutputStream Creats a buffer in memory.  All data are placed in that buffer. Optional initial size of the buffer
FileOutputStream For sending information to a file String (of the file name)
PipedOuputStream

Case Study: FileApp.java, FileApp2.java


Next Page