public class StreamIO extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
StreamIO.InputStreamListener |
static interface |
StreamIO.InputStreamProvider |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_READ_STEP_SIZE |
Modifier and Type | Method and Description |
---|---|
static Object |
cloneObject(Serializable obj) |
static byte[] |
getResourceBytes(Object caller,
String packageName,
String resourceName) |
static byte[] |
readFile(File file) |
static byte[] |
readFile(File file,
StreamIO.InputStreamListener lst,
int stepSize) |
static byte[] |
readInputStream(InputStream is) |
static byte[] |
readInputStream(InputStream is,
StreamIO.InputStreamListener lst,
int stepSize) |
static void |
setCancel(boolean value) |
static boolean |
writeStreamDlg(InputStream is,
OutputStream os,
int knownSize,
String mainMsg,
Component dlgOwner,
Options options) |
static void |
writeStreamTo(InputStream is,
OutputStream os) |
static void |
writeStreamTo(InputStream is,
OutputStream os,
StreamIO.InputStreamListener lst,
int stepSize) |
public static final int DEFAULT_READ_STEP_SIZE
public static void setCancel(boolean value)
public static byte[] readInputStream(InputStream is) throws IOException
IOException
public static byte[] readInputStream(InputStream is, StreamIO.InputStreamListener lst, int stepSize) throws IOException
IOException
public static byte[] readFile(File file) throws IOException
IOException
public static byte[] readFile(File file, StreamIO.InputStreamListener lst, int stepSize) throws IOException
IOException
public static byte[] getResourceBytes(Object caller, String packageName, String resourceName) throws IOException
IOException
public static void writeStreamTo(InputStream is, OutputStream os) throws IOException
IOException
public static void writeStreamTo(InputStream is, OutputStream os, StreamIO.InputStreamListener lst, int stepSize) throws IOException
IOException
public static boolean writeStreamDlg(InputStream is, OutputStream os, int knownSize, String mainMsg, Component dlgOwner, Options options)
public static Object cloneObject(Serializable obj) throws Exception
Exception
Copyright © 2004-15 Francesc Busquets (fbusquets@xtec.cat) & Departament d'Educació de la Generalitat de Catalunya (info@xtec.cat)
Licensed under the terms of the GNU General Public License.