IO Assignment:  Java advanced                                 P.Komisar
 



IO Streams

Which IO class would be the probable best choice to use to add the
following functionality to an io process?

ie. may be used read bytes from one thread to sends to another in a multithreaded process
PipedInputStream

1.  sequentially write Unicode characters to a file______________
2.  add performance to an incoming stream of bytes_____________
3.  read incoming serialized objects_____________
4.  convert a stream of unicode characters into a byte stream___________
5.  non-sequentially read or write data to a file______________
6.  write an array of unicode characters_____________
7.  read a stream of bytes and convert them into 16 bit characters________
8.  find if a file exists on the system directory_____________
9.  read certain primitive data types from a byte stream_____________
10. inspect the first byte in a stream and then restoring the byte to it's
     first position in the stream_______________
11. isolate the occurence of a particular character segment from an
     incoming data stream ______________
 

12. T/F A high-level stream can be opened on RandomAccessFile.
13. T/F Creating an instance of File creates a file on the system directory.
14. T/F Opening an instance of a RandomAccessFile on a String literal (which doesn't
             represent a pre-existent file),using read and write attributes,
             creates a new file on the system.
15. T/F  Opening an instance of a RandomAccessFile on a String literal (which doesn't
             represent a pre-existent file),using the read only attribute,
             creates a new file on the system.
16. T/F UTF-8 character encoding format has the same bandwidth
            inefficiency as Unicode but adds the advantage of being able
            to encode all possible characters.