Advertisement

Writers and Readers

  • Jeff Friesen

Abstract

Java’s stream classes are good for streaming sequences of bytes, but they’re not good for streaming sequences of characters because bytes and characters are two different things: a byte represents an 8-bit data item and a character represents a 16-bit data item. Also, Java’s char and java.lang.String types naturally handle characters instead of bytes.

Supplementary material

978-1-4842-1565-4_5_MOESM1_ESM.zip (1 kb)
ch05 (zip 2 kb)

Copyright information

© Jeff Friesen 2015

Authors and Affiliations

  • Jeff Friesen
    • 1
  1. 1.ManitobaCanada

Personalised recommendations