public class SwingPrivateIOUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_BUFFER_SIZE
taille par defaut du buffer de transfert
|
| Constructor and Description |
|---|
SwingPrivateIOUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copy(InputStream in,
OutputStream out)
copy le flux d'entree dans le lux de sortie
|
static void |
copy(InputStream in,
OutputStream out,
int bufferSize)
copy le flux d'entree dans le lux de sortie
|
static String |
getRelativePath(File parent,
File son) |
static byte[] |
loadStreamAsByteArray(InputStream r) |
static String |
loadStreamAsString(URL url) |
static Properties |
loadXMLProperties(File file) |
static void |
storeXMLProperties(File file,
Properties p,
String comments) |
public static final int DEFAULT_BUFFER_SIZE
public static String loadStreamAsString(URL url) throws IOException
IOExceptionpublic static byte[] loadStreamAsByteArray(InputStream r) throws IOException
IOExceptionpublic static void copy(InputStream in, OutputStream out) throws IOException
in - entreeout - sortieIOException - when IO errorpublic static void copy(InputStream in, OutputStream out, int bufferSize) throws IOException
in - entreeout - sortieIOException - when IO errorpublic static Properties loadXMLProperties(File file) throws IOException
IOExceptionpublic static void storeXMLProperties(File file, Properties p, String comments) throws IOException
IOExceptionCopyright © 2022 vpc open source initiative. All rights reserved.