RSS

Tag Archives: streams

Proper Stream Patterns

Java has streams for bytes, and streams for chars.  Learn to use them correctly.  It can be daunting at first, but if you just learn a few basic patterns, it all works well. Read the rest of this entry »

 
Leave a comment

Posted by on January 7, 2014 in Coding, Example Code

 

Tags: ,

3 reasons that XML should be Streamed and never “Stringed”

XML is a text format, and so it is tempting to handle it with the normal String handling capabilities of Java, but there are several reasons that you must never do this.  XML should either be on the disk as a sequence of bytes, or it should be parsed as a DOM tree of decoded string values, but it should never be in a String in its encoded value. Read the rest of this entry »

 
Leave a comment

Posted by on July 17, 2013 in Coding, Design

 

Tags: , , , ,