com.badlogic.gdx.utils
Class StreamUtils
java.lang.Object
com.badlogic.gdx.utils.StreamUtils
public class StreamUtils
- extends Object
Provides utility methods to copy streams
EMPTY_BYTES
public static final byte[] EMPTY_BYTES
StreamUtils
public StreamUtils()
copyStream
public static void copyStream(InputStream input,
OutputStream output)
throws IOException
- Copy the data from an
InputStream
to an OutputStream
.
- Throws:
IOException
copyStream
public static void copyStream(InputStream input,
OutputStream output,
int bufferSize)
throws IOException
- Copy the data from an
InputStream
to an OutputStream
.
- Throws:
IOException
closeQuietly
public static void closeQuietly(Closeable c)
- Close and ignore all errors.
Copyright © 2013. All Rights Reserved.