public class BootIOUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
NEW_LINE |
static int |
UTF_MAX_LENGTH |
Constructor and Description |
---|
BootIOUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isEmpty(String s) |
static File[] |
listFiles(File dir)
A replacement for
File.listFiles() that does not return null |
static File[] |
listFiles(File dir,
FileFilter filter) |
static File[] |
listFiles(File dir,
FilenameFilter filter) |
static String |
path(String base,
String... tokens) |
static Map<String,String> |
readMapStringString(ObjectInput in) |
static String |
readString(ObjectInput in) |
static String[] |
readStringArray(ObjectInput in) |
static String |
wrapIpv6HostAddressIfNeeded(InetAddress hostAddress) |
static void |
writeMapStringString(ObjectOutput out,
Map<String,String> map) |
static void |
writeString(ObjectOutput out,
String s) |
static void |
writeStringArray(ObjectOutput out,
String[] array) |
public static final int UTF_MAX_LENGTH
public static final String NEW_LINE
public static boolean isEmpty(String s)
public static void writeMapStringString(ObjectOutput out, Map<String,String> map) throws IOException
IOException
public static void writeString(ObjectOutput out, String s) throws IOException
IOException
public static Map<String,String> readMapStringString(ObjectInput in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public static String readString(ObjectInput in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public static String[] readStringArray(ObjectInput in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public static void writeStringArray(ObjectOutput out, String[] array) throws IOException
IOException
public static File[] listFiles(File dir)
File.listFiles()
that does not return nullIllegalArgumentException
- if not a directory or has no read permissionspublic static File[] listFiles(File dir, FileFilter filter)
public static File[] listFiles(File dir, FilenameFilter filter)
public static String wrapIpv6HostAddressIfNeeded(InetAddress hostAddress)
Copyright © GigaSpaces.