
Package ca.uhn.fhir.util
Class StreamUtil
java.lang.Object
ca.uhn.fhir.util.StreamUtil
- 
Method Summary
 
- 
Method Details
- 
partition
Chunk the stream into Lists of size theChunkSize. The last chunk will be smaller unless the stream size is evenly divisible. Closes the underlying stream when done.- Parameters:
 theStream- the input streamtheChunkSize- the chunk size.- Returns:
 - a stream of chunks
 
 
 -