| java.lang.Object org.apache.wicket.util.io.Streams
Streams | final public class Streams (Code) | | Utilities methods for working with input and output streams.
author: Jonathan Locke |
copy | public static int copy(InputStream in, OutputStream out) throws IOException(Code) | | Writes the input stream to the output stream. Input is done without a
Reader object, meaning that the input is copied in its raw form.
Parameters: in - The input stream Parameters: out - The output stream Number of bytes copied from one stream to the other throws: IOException - |
loadFromXml | public static void loadFromXml(Properties properties, InputStream inputStream) throws IOException(Code) | | Loads properties from an XML input stream into the provided properties
object.
Parameters: properties - The object to load the properties into Parameters: inputStream - throws: IOException - When the input stream could not be read from |
|
|