org.neo4j.kernel.impl.util
Class IoPrimitiveUtils
java.lang.Object
org.neo4j.kernel.impl.util.IoPrimitiveUtils
public abstract class IoPrimitiveUtils
- extends Object
|
Method Summary |
static Object[] |
asArray(Object propertyValue)
|
static String |
read2bLengthAndString(ReadableByteChannel channel,
ByteBuffer buffer)
|
static Map<String,String> |
read2bMap(ReadableByteChannel channel,
ByteBuffer buffer)
|
static String |
read3bLengthAndString(ReadableByteChannel channel,
ByteBuffer buffer)
|
static Byte |
readByte(ReadableByteChannel channel,
ByteBuffer buffer)
|
static byte[] |
readBytes(ReadableByteChannel channel,
byte[] array)
|
static byte[] |
readBytes(ReadableByteChannel channel,
byte[] array,
int bytes)
|
static Double |
readDouble(ReadableByteChannel channel,
ByteBuffer buffer)
|
static Float |
readFloat(ReadableByteChannel channel,
ByteBuffer buffer)
|
static Integer |
readInt(ReadableByteChannel channel,
ByteBuffer buffer)
|
static String |
readLengthAndString(ReadableByteChannel channel,
ByteBuffer buffer)
|
static Long |
readLong(ReadableByteChannel channel,
ByteBuffer buffer)
|
static Map<String,String> |
readMap(ReadableByteChannel channel,
ByteBuffer buffer)
|
static Short |
readShort(ReadableByteChannel channel,
ByteBuffer buffer)
|
static String |
readString(ReadableByteChannel channel,
ByteBuffer buffer,
int length)
|
static void |
write2bLengthAndString(LogBuffer buffer,
String string)
|
static void |
write3bLengthAndString(LogBuffer buffer,
String string)
|
static void |
writeInt(FileChannel channel,
ByteBuffer buffer,
int value)
|
static void |
writeLengthAndString(FileChannel channel,
ByteBuffer buffer,
String value)
|
static void |
writeMap(FileChannel channel,
ByteBuffer buffer,
Map<String,String> map)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IoPrimitiveUtils
public IoPrimitiveUtils()
readLengthAndString
public static String readLengthAndString(ReadableByteChannel channel,
ByteBuffer buffer)
throws IOException
- Throws:
IOException
readString
public static String readString(ReadableByteChannel channel,
ByteBuffer buffer,
int length)
throws IOException
- Throws:
IOException
write3bLengthAndString
public static void write3bLengthAndString(LogBuffer buffer,
String string)
throws IOException
- Throws:
IOException
read3bLengthAndString
public static String read3bLengthAndString(ReadableByteChannel channel,
ByteBuffer buffer)
throws IOException
- Throws:
IOException
write2bLengthAndString
public static void write2bLengthAndString(LogBuffer buffer,
String string)
throws IOException
- Throws:
IOException
read2bLengthAndString
public static String read2bLengthAndString(ReadableByteChannel channel,
ByteBuffer buffer)
throws IOException
- Throws:
IOException
readByte
public static Byte readByte(ReadableByteChannel channel,
ByteBuffer buffer)
throws IOException
- Throws:
IOException
readShort
public static Short readShort(ReadableByteChannel channel,
ByteBuffer buffer)
throws IOException
- Throws:
IOException
readInt
public static Integer readInt(ReadableByteChannel channel,
ByteBuffer buffer)
throws IOException
- Throws:
IOException
readLong
public static Long readLong(ReadableByteChannel channel,
ByteBuffer buffer)
throws IOException
- Throws:
IOException
readFloat
public static Float readFloat(ReadableByteChannel channel,
ByteBuffer buffer)
throws IOException
- Throws:
IOException
readDouble
public static Double readDouble(ReadableByteChannel channel,
ByteBuffer buffer)
throws IOException
- Throws:
IOException
readBytes
public static byte[] readBytes(ReadableByteChannel channel,
byte[] array)
throws IOException
- Throws:
IOException
readBytes
public static byte[] readBytes(ReadableByteChannel channel,
byte[] array,
int bytes)
throws IOException
- Throws:
IOException
readMap
public static Map<String,String> readMap(ReadableByteChannel channel,
ByteBuffer buffer)
throws IOException
- Throws:
IOException
read2bMap
public static Map<String,String> read2bMap(ReadableByteChannel channel,
ByteBuffer buffer)
throws IOException
- Throws:
IOException
writeLengthAndString
public static void writeLengthAndString(FileChannel channel,
ByteBuffer buffer,
String value)
throws IOException
- Throws:
IOException
writeInt
public static void writeInt(FileChannel channel,
ByteBuffer buffer,
int value)
throws IOException
- Throws:
IOException
writeMap
public static void writeMap(FileChannel channel,
ByteBuffer buffer,
Map<String,String> map)
throws IOException
- Throws:
IOException
asArray
public static Object[] asArray(Object propertyValue)
Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.