Skip to content
Mahmoud Ben Hassine edited this page Oct 12, 2015 · 9 revisions

Synopsis

Create a XStream from the standard input or a file.

Example

// create an infinite XStream from the standard input
XStream<String> stdin = XStream.cat(); 

// create a XStream of lines from the file named "input.txt"
XStream<String> lines = XStream.cat("input.txt"); 
Clone this wiki locally