public class OIOUtils extends Object
Modifier and Type | Field and Description |
---|---|
static long |
DAY |
static long |
HOUR |
static long |
MINUTE |
static long |
SECOND |
static String |
UTF8_BOM |
static long |
WEEK |
static long |
YEAR |
Constructor and Description |
---|
OIOUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
calculateBlockSize(String path) |
static long |
copyStream(InputStream in,
OutputStream out,
long iMax) |
static Object |
encode(Object iValue) |
static boolean |
equals(byte[] buffer,
byte[] buffer2) |
static String |
getDatabaseNameFromPath(String iPath) |
static String |
getPathFromDatabaseName(String iPath) |
static String |
getRelativePathIfAny(String iDatabaseURL,
String iBasePath) |
static String |
getStringContent(Object iValue) |
static String |
getStringMaxLength(String iText,
int iMax) |
static String |
getStringMaxLength(String iText,
int iMax,
String iOther) |
static long |
getTimeAsMillisecs(Object iSize) |
static String |
getTimeAsString(long iTime) |
static Date |
getTodayWithTime(String iTime) |
static String |
getUnixFileName(String iFileName)
Returns the Unix file name format converting backslashes (\) to slasles (/)
|
static boolean |
isLong(String iText) |
static boolean |
isStringContent(Object iValue) |
static String |
java2unicode(String iInput) |
static void |
readByteBuffer(ByteBuffer buffer,
FileChannel channel) |
static void |
readByteBuffer(ByteBuffer buffer,
FileChannel channel,
long position,
boolean throwOnEof) |
static void |
readByteBuffer(ByteBuffer buffer,
int fd) |
static String |
readFileAsString(File iFile) |
static String |
readFileAsString(File iFile,
Charset iCharset) |
static void |
readFully(InputStream in,
byte[] b,
int off,
int len) |
static String |
readStreamAsString(InputStream iStream) |
static String |
readStreamAsString(InputStream iStream,
Charset iCharset) |
static String |
wrapStringContent(Object iValue,
char iStringDelimiter) |
static int |
writeByteBuffer(ByteBuffer buffer,
FileChannel channel,
long position) |
static void |
writeFile(File iFile,
String iContent) |
public static final long SECOND
public static final long MINUTE
public static final long HOUR
public static final long DAY
public static final long YEAR
public static final long WEEK
public static final String UTF8_BOM
public static long getTimeAsMillisecs(Object iSize)
public static String getTimeAsString(long iTime)
public static Date getTodayWithTime(String iTime) throws ParseException
ParseException
public static String readFileAsString(File iFile) throws IOException
IOException
public static String readFileAsString(File iFile, Charset iCharset) throws IOException
IOException
public static String readStreamAsString(InputStream iStream) throws IOException
IOException
public static String readStreamAsString(InputStream iStream, Charset iCharset) throws IOException
IOException
public static void writeFile(File iFile, String iContent) throws IOException
IOException
public static long copyStream(InputStream in, OutputStream out, long iMax) throws IOException
IOException
public static String getUnixFileName(String iFileName)
public static String getRelativePathIfAny(String iDatabaseURL, String iBasePath)
public static boolean isStringContent(Object iValue)
public static boolean equals(byte[] buffer, byte[] buffer2)
public static boolean isLong(String iText)
public static void readFully(InputStream in, byte[] b, int off, int len) throws IOException
IOException
public static void readByteBuffer(ByteBuffer buffer, FileChannel channel, long position, boolean throwOnEof) throws IOException
IOException
public static void readByteBuffer(ByteBuffer buffer, FileChannel channel) throws IOException
IOException
public static void readByteBuffer(ByteBuffer buffer, int fd) throws IOException
IOException
public static int writeByteBuffer(ByteBuffer buffer, FileChannel channel, long position) throws IOException
IOException
public static int calculateBlockSize(String path)
Copyright © 2009–2020 OrientDB. All rights reserved.