split « API « Java I/O Q&A





1. Java: How to split XML stream into small XML documents? XPath on streaming XML parser?    stackoverflow.com

I need to read a large XML document from the network and split it up into smaller XML documents. In particular the stream I read from the network looks something like ...

2. FileReader vs FileInputReader. split vs Pattern    stackoverflow.com

I'm working with a file with about 2G. I want to read the file line by line to find some specific terms. Whitch class can I better use: FileReader or FileInputStream? And how ...

3. JAVA Split huge file into multiparts ZIP. How to?    stackoverflow.com

In my application I have to send XLS reports by email, but if the file is larger than 10 MB I have to split this file into multipart ZIP-s and send ...

4. Single inputstream containing two files. I want to split those files    stackoverflow.com

In java I'm having an inputstream (maybe sequenceinputstream) containing more than one file. I want to separate those files using java. Is there any solution available in java?

5. How to find out which line separator BufferedReader#readLine() used to split the line?    stackoverflow.com

I am reading a file via the BufferedReader

String filename = ...
br = new BufferedReader( new FileInputStream(filename));
while (true) {
   String s = br.readLine();
   if (s == null) ...