org.drools.core.util
Class IoUtils
java.lang.Object
org.drools.core.util.IoUtils
public class IoUtils
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IoUtils
public IoUtils()
findPort
public static int findPort()
validPort
public static boolean validPort(int port)
readFileAsString
public static String readFileAsString(File file)
copyFile
public static void copyFile(File sourceFile,
File destFile)
indexZipFile
public static Map<String,byte[]> indexZipFile(File jarFile)
recursiveListFile
public static List<String> recursiveListFile(File folder)
recursiveListFile
public static List<String> recursiveListFile(File folder,
String prefix,
Predicate<? super File> filter)
readBytesFromInputStream
public static byte[] readBytesFromInputStream(InputStream is)
throws IOException
- Throws:
IOException
readBytesFromZipEntry
public static byte[] readBytesFromZipEntry(File file,
ZipEntry entry)
throws IOException
- Throws:
IOException
readBytes
public static byte[] readBytes(File f)
throws IOException
- Throws:
IOException
write
public static void write(File f,
byte[] data)
throws IOException
- Throws:
IOException
writeBytes
public static void writeBytes(File f,
byte[] data)
throws IOException
- Throws:
IOException
areByteArraysEqual
public static boolean areByteArraysEqual(byte[] b1,
byte[] b2)
asSystemSpecificPath
public static String asSystemSpecificPath(String urlPath,
int colonIndex)
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.