Package sonia.scm.util
Class IOUtil
java.lang.Object
sonia.scm.util.IOUtil
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic voidcopy(InputStream in, OutputStream out) static voidcopy(InputStream in, OutputStream out, int bufferSize) static voidcopy(InputStream in, OutputStream out, int bufferSize, int byteCount) static voidstatic voidstatic voidcopyThread(InputStream input, OutputStream output) static voidcopyThread(InputStream input, OutputStream output, int bufferSize) static voidcopyThread(Reader reader, Writer writer) static voidcopyThread(Reader reader, Writer writer, int bufferSize) static voidstatic voidstatic voiddeleteSilently(File file) static voidstatic voidstatic Stringstatic Filestatic Filestatic booleanReturns true if the second file parameter is a child of the first one.static booleanstatic voidstatic Stringstatic Stringstatic StringTODO check for windowsstatic StringtrimSeperatorChars(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
-