Package sonia.scm.util
Class IOUtil
java.lang.Object
sonia.scm.util.IOUtil
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
static void
copy
(InputStream in, OutputStream out) static void
copy
(InputStream in, OutputStream out, int bufferSize) static void
copy
(InputStream in, OutputStream out, int bufferSize, int byteCount) static void
static void
static void
copyThread
(InputStream input, OutputStream output) static void
copyThread
(InputStream input, OutputStream output, int bufferSize) static void
copyThread
(Reader reader, Writer writer) static void
copyThread
(Reader reader, Writer writer, int bufferSize) static void
static void
static void
deleteSilently
(File file) static void
static void
static String
static File
static File
static boolean
Returns true if the second file parameter is a child of the first one.static boolean
static void
static String
static String
static String
TODO check for windowsstatic String
trimSeperatorChars
(String name)
-
Field Details
-
DEFAULT_BUFFERSIZE
public static final int DEFAULT_BUFFERSIZE- See Also:
-
-
Method Details
-
close
-
copy
- Throws:
IOException
-
copy
- Throws:
IOException
-
copy
- Throws:
IOException
-
copy
- Throws:
IOException
-
copy
public static void copy(InputStream in, OutputStream out, int bufferSize, int byteCount) throws IOException - Throws:
IOException
-
copy
- Throws:
IOException
-
copyThread
-
copyThread
-
copyThread
-
copyThread
-
delete
- Throws:
IOException
-
deleteSilently
-
delete
- Throws:
IOException
-
extract
- Throws:
IOException
-
extract
- Throws:
IOException
-
mkdirs
-
search
-
search
-
search
TODO check for windows -
searchAll
-
searchAll
-
searchAll
-
trimSeperatorChars
- Since:
- 1.9
-
getContent
- Throws:
IOException
- Since:
- 1.8
-
getScript
- Since:
- 1.6
-
getScript
- Since:
- 1.6
-
isChild
Returns true if the second file parameter is a child of the first one.- Parameters:
parent
- parent filechild
- chile file- Since:
- 1.9
-
isEmpty
- Since:
- 1.16
-