Fileinputstream
FileInputStream is a Java class meant for reading streams of raw bytes.
Fileoutputstream
FileOutputStream is a Java class used to write bytes directly to a File or to a FileDescriptor.
Others
Example |
---|
At first i tried reading the original pdf with a fileinputstream and finding the signature hex strings to split it into smaller files with a fileoutputstream as i have done with jpgs from question Separating PDF pages in Java |