Class SwingPrivateIOUtils
java.lang.Object
net.thevpc.common.swing.util.SwingPrivateIOUtils
- Author:
- thevpc
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final inttaille par defaut du buffer de transfert -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcopy(InputStream in, OutputStream out) copy le flux d'entree dans le lux de sortiestatic voidcopy(InputStream in, OutputStream out, int bufferSize) copy le flux d'entree dans le lux de sortiestatic StringgetRelativePath(File parent, File son) static byte[]static StringloadStreamAsString(URL url) static PropertiesloadXMLProperties(File file) static voidstoreXMLProperties(File file, Properties p, String comments)
-
Field Details
-
DEFAULT_BUFFER_SIZE
public static final int DEFAULT_BUFFER_SIZEtaille par defaut du buffer de transfert- See Also:
-
-
Constructor Details
-
SwingPrivateIOUtils
public SwingPrivateIOUtils()
-
-
Method Details
-
loadStreamAsString
- Throws:
IOException
-
loadStreamAsByteArray
- Throws:
IOException
-
copy
copy le flux d'entree dans le lux de sortie- Parameters:
in- entreeout- sortie- Throws:
IOException- when IO error
-
copy
copy le flux d'entree dans le lux de sortie- Parameters:
in- entreeout- sortie- Throws:
IOException- when IO error
-
loadXMLProperties
- Throws:
IOException
-
storeXMLProperties
- Throws:
IOException
-
getRelativePath
-