Apesar da tecnologia Java possuir uma linguagem de programação bem mais simplificada do que algumas de suas predescessoras (C, C++), alguns novos conceitos porem prover dificuldades para iniciantes na tecnologia, tais como a análise e desenvolvimento orientado por objetos, alocação automática de memória, classe vs. objeto, polimorfismo, dentro outros.
Para facilitar este aprendizado, existem diversas ferramentas que possuem o objetivo de auxiliar o aprendizado destes novos conceitos, tais como:
Read from and write to memory. Create on an existing array and then use the read and write methods to read from or write to the array.
Memory
StringReader StringWriter StringBufferInputStream
top>StringReader reads characters from a String in memory.StringWriter writes to a String, collecting characters written to it in a StringBuffer, which can then be converted to a String.StringBufferInputStream is similar to StringReader, except that it reads bytes from a StringBuffer.
Collectively called file streams, these streams are used to read from or write to a file on the native file system.
Concatenation
N/A SequenceInputStream
Concatenates multiple input streams into one input stream.
Object Serialization
N/A ObjectInputStream ObjectOutputStream
Used to serialize objects.
Data
Conversion
N/A DataInputStream DataOutputStream
Read or write primitive data types in a machine-independent format.
Counting
LineNumberReader LineNumberInputStream
Keeps track of line numbers while reading.
Peeking Ahead
PushbackReader PushbackInputStream
These input streams each have a pushback buffer. When reading data from a stream, it is sometimes useful to peek at the next few bytes or characters in the stream to decide what to do next.
Printing
PrintWriter PrintStream
Contain convenient printing methods. These are the easiest streams to write to, so you will often see other writable streams wrapped in one of these.
Buffer data while reading or writing, thereby reducing the number of accesses required on the original data source. Buffered streams are typically more efficient than similar nonbuffered streams and are often used with other streams.
These abstract classes define the interface for filter streams, which filter data as it’s being read or written.
Convert
InputStreamReader OutputStreamWriter
Convert byte streams to character streams, and vice-versa.InputStreamReaders read bytes from InputStreams and convert them to characters. OutputStreamWriters convert characters to bytes and write to an OutputStream. Default character encodings are stored in System.getProperty(”file.encoding”).
Links: novos links de páginas no blog para sugestões de livros, links, e para temas referentes às plataformas JavaSE e JavaME.
Projeto de Curso: disponibilizei as apresentações dos exercícios dos capítulos 3 e 4 do nosso projeto de curso. Estou em fase de análise do Slideshare no blog para que todos possam acessar os slides durante a semana.
Exercícios da apostila: disponibilizei também o gabarito dos exercícios da apostila. Como preciso fazer todos os exercícios, estarei disponibilzando-os aos poucos.
Ambas páginas estão disponíveis via link “Java SE”.