Package de.julielab.xml.binary
Class BinaryJedisFormatUtils
- java.lang.Object
-
- de.julielab.xml.binary.BinaryJedisFormatUtils
-
public class BinaryJedisFormatUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description BinaryJedisFormatUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancheckForJeDISBinaryFormat(byte[] firstTwoBytes)Compares the first two bytes toBinaryJeDISNodeEncoder.JEDIS_BINARY_MAGIC.static booleancheckForJeDISBinaryFormat(InputStream is)Reads the first two bytes of the InputStream and compares toBinaryJeDISNodeEncoder.JEDIS_BINARY_MAGIC.
-
-
-
Method Detail
-
checkForJeDISBinaryFormat
public static boolean checkForJeDISBinaryFormat(InputStream is) throws IOException
Reads the first two bytes of the InputStream and compares toBinaryJeDISNodeEncoder.JEDIS_BINARY_MAGIC.- Parameters:
is-- Returns:
- Throws:
IOException
-
checkForJeDISBinaryFormat
public static boolean checkForJeDISBinaryFormat(byte[] firstTwoBytes)
Compares the first two bytes toBinaryJeDISNodeEncoder.JEDIS_BINARY_MAGIC.- Parameters:
firstTwoBytes-- Returns:
- Throws:
IOException
-
-