|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.contentmanagement.util.stream.StreamUtils
public class StreamUtils
The Class StreamUtils.
Constructor Summary | |
---|---|
StreamUtils()
|
Method Summary | |
---|---|
static void |
append(java.io.InputStream in,
java.io.OutputStream out)
Copy. |
static void |
appendTo(java.io.File file,
java.io.File newContent)
Append to. |
static boolean |
areEqual(java.io.InputStream in1,
java.io.InputStream in2)
Are equal. |
static void |
copy(java.io.File inFile,
java.io.File outFile)
Copy. |
static void |
copy(java.io.InputStream in,
java.io.OutputStream out)
Copy. |
static void |
copy(java.io.InputStream in,
java.io.OutputStream out,
long offset)
Copy. |
static void |
copy(java.io.InputStream in,
java.io.OutputStream out,
long offset,
long length)
Copy. |
static void |
copy(java.io.Reader in,
java.io.Writer out,
int offset)
Copy. |
static void |
copyFromFile(java.io.File f,
java.io.OutputStream out)
Copy from file. |
static void |
copyToFile(java.io.InputStream in,
java.io.File f)
Copy to file. |
static void |
extractPart(java.io.File inFile,
java.io.File outFile,
long offset,
long length)
Extract part. |
static void |
main(java.lang.String[] args)
The main method. |
static java.lang.String |
stringFromFile(java.io.File f,
java.nio.charset.Charset encoding)
This function is only appropriate for character data. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StreamUtils()
Method Detail |
---|
public static void copy(java.io.File inFile, java.io.File outFile) throws java.io.IOException
inFile
- the in fileoutFile
- the out file
java.io.IOException
- Signals that an I/O exception has occurred.public static void extractPart(java.io.File inFile, java.io.File outFile, long offset, long length) throws java.io.IOException
inFile
- the in fileoutFile
- the out fileoffset
- the offsetlength
- the length
java.io.IOException
- Signals that an I/O exception has occurred.public static void copy(java.io.InputStream in, java.io.OutputStream out, long offset, long length) throws java.io.IOException
in
- the inout
- the outoffset
- the offsetlength
- the length
java.io.IOException
- Signals that an I/O exception has occurred.public static void copy(java.io.InputStream in, java.io.OutputStream out, long offset) throws java.io.IOException
in
- the inout
- the outoffset
- the offset
java.io.IOException
- Signals that an I/O exception has occurred.public static void append(java.io.InputStream in, java.io.OutputStream out) throws java.io.IOException
in
- the inout
- the outoffset
- the offset
java.io.IOException
- Signals that an I/O exception has occurred.public static void copy(java.io.InputStream in, java.io.OutputStream out) throws java.io.IOException
in
- the inout
- the out
java.io.IOException
- Signals that an I/O exception has occurred.public static boolean areEqual(java.io.InputStream in1, java.io.InputStream in2) throws java.io.IOException
in1
- the in1in2
- the in2
java.io.IOException
- Signals that an I/O exception has occurred.public static void copy(java.io.Reader in, java.io.Writer out, int offset) throws java.io.IOException
in
- the inout
- the outoffset
- the offset
java.io.IOException
- Signals that an I/O exception has occurred.public static void copyToFile(java.io.InputStream in, java.io.File f) throws java.io.IOException
in
- the inf
- the f
java.io.IOException
- Signals that an I/O exception has occurred.public static void appendTo(java.io.File file, java.io.File newContent) throws java.io.IOException
file
- the filenewContent
- the new content
java.io.IOException
- Signals that an I/O exception has occurred.public static void copyFromFile(java.io.File f, java.io.OutputStream out) throws java.io.IOException
f
- the fout
- the out
java.io.IOException
- Signals that an I/O exception has occurred.public static void main(java.lang.String[] args) throws java.io.IOException
args
- the arguments
java.io.IOException
- Signals that an I/O exception has occurred.public static java.lang.String stringFromFile(java.io.File f, java.nio.charset.Charset encoding) throws java.io.IOException
f
- the fencoding
- the encoding
java.io.IOException
- Signals that an I/O exception has occurred.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |