Return to Tutorials index

download full size image (for printing)

Interesting Points

One can follow the arrows (and into/onto paths) in the diagram above and arrive at the same location via different paths.

For example, to get to a byte[] array, one can:

  1. File -> FileInputStream -> byte[]
  2. File -> Bytechannel -> ByteBuffer -> byte[]
  3. File -> FileInputStream -> InputStreamReader -> onto char[] -> CharBuffer -> Encoder -> ByteBuffer -> byte[]
    [not that one would do this, of course :-)]
  4. ..etc..