Class GeminiParser
java.lang.Object
org.netpreserve.jwarc.MessageParser
org.netpreserve.jwarc.GeminiParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisError()booleanmeta()voidparse(ByteBuffer data) Runs the parser on a buffer of data.voidparse(ReadableByteChannel channel, ByteBuffer buffer) voidreset()intstatus()voidConfigures the parser to read a gemini request while rejecting deviations from the standard.voidConfigures the parser to read a gemini response while rejecting deviations from the standard.url()Methods inherited from class org.netpreserve.jwarc.MessageParser
emitWarning, getErrorContext, getErrorContext
-
Constructor Details
-
GeminiParser
public GeminiParser()
-
-
Method Details
-
reset
public void reset() -
status
public int status() -
meta
-
url
-
isFinished
public boolean isFinished() -
isError
public boolean isError() -
strictRequest
public void strictRequest()Configures the parser to read a gemini request while rejecting deviations from the standard. -
strictResponse
public void strictResponse()Configures the parser to read a gemini response while rejecting deviations from the standard. -
parse
Runs the parser on a buffer of data. Passing null as the buffer indicates the end of input.- Throws:
ParsingException
-
parse
- Throws:
IOException
-