|Constructor and Description|
Creates an instance of
|Modifier and Type||Method and Description|
available, mark, markSupported, read, read, reset, skip
public CombinedResourceInputStream(Set<Resource> resources) throws IOException
CombinedResourceInputStreambased on the given resources. For each resource, the
InputStreamwill be obtained and hold in an iterable collection.
resources- The resources to be read.
IOException- If something fails at I/O level.
public int read() throws IOException
-1and then iterate to the
InputStreamof the next resource, if any available, else return
public void close() throws IOException
InputStreamof each resource. Whenever the
IOExceptionfor the first time, it will be caught and be thrown after all resources have been closed. Any
IOExceptionwhich is thrown by a subsequent close will be ignored by design.
Copyright © 2012–2017 OmniFaces. All rights reserved.