Package com.github.fppt.jedismock.server
Class SliceParser
java.lang.Object
com.github.fppt.jedismock.server.SliceParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byteconsumeByte(InputStream messageInput) static longconsumeCount(byte[] message) static longconsumeCount(InputStream messageInput) static intconsumeInteger(byte[] message) static intconsumeInteger(InputStream messageInput) static longconsumeLong(InputStream messageInput) static SliceconsumeParameter(byte[] message) static SliceconsumeParameter(InputStream messageInput) static SliceconsumeSlice(InputStream messageInput, long len) static voidexpectByte(InputStream messageInput, byte c)
-
Constructor Details
-
SliceParser
public SliceParser()
-
-
Method Details
-
consumeByte
- Throws:
EOFException
-
expectByte
public static void expectByte(InputStream messageInput, byte c) throws ParseErrorException, EOFException - Throws:
ParseErrorExceptionEOFException
-
consumeLong
- Throws:
ParseErrorException
-
consumeSlice
- Throws:
ParseErrorException
-
consumeCount
- Throws:
ParseErrorException
-
consumeCount
- Throws:
ParseErrorException
-
consumeInteger
- Throws:
ParseErrorException
-
consumeInteger
- Throws:
ParseErrorException
-
consumeParameter
- Throws:
ParseErrorException
-
consumeParameter
- Throws:
ParseErrorException
-