Class FileSupport
- java.lang.Object
-
- org.fusesource.hawtjni.generator.util.FileSupport
-
public class FileSupport extends Object
- Author:
- Hiram Chirino
-
-
Constructor Summary
Constructors Constructor Description FileSupport()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
close(InputStream is)
static void
close(OutputStream ioss)
static void
copy(InputStream is, OutputStream os)
static boolean
equals(byte[] bytes, File file)
static boolean
equals(InputStream is1, InputStream is2)
static boolean
write(byte[] bytes, File file)
-
-
-
Constructor Detail
-
FileSupport
public FileSupport()
-
-
Method Detail
-
write
public static boolean write(byte[] bytes, File file) throws IOException
- Throws:
IOException
-
copy
public static void copy(InputStream is, OutputStream os) throws IOException
- Throws:
IOException
-
equals
public static boolean equals(byte[] bytes, File file) throws IOException
- Throws:
IOException
-
close
public static void close(InputStream is)
-
close
public static void close(OutputStream ioss)
-
equals
public static boolean equals(InputStream is1, InputStream is2) throws IOException
- Throws:
IOException
-
-