public class GeminiParser extends MessageParser
| Constructor and Description |
|---|
GeminiParser() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isError() |
boolean |
isFinished() |
String |
meta() |
void |
parse(ByteBuffer data)
Runs the parser on a buffer of data.
|
void |
parse(ReadableByteChannel channel,
ByteBuffer buffer) |
void |
reset() |
int |
status() |
void |
strictRequest()
Configures the parser to read a gemini request while rejecting deviations from the standard.
|
void |
strictResponse()
Configures the parser to read a gemini response while rejecting deviations from the standard.
|
String |
url() |
getErrorContext, getErrorContextpublic void reset()
public int status()
public String meta()
public String url()
public boolean isFinished()
public boolean isError()
public void strictRequest()
public void strictResponse()
public void parse(ByteBuffer data) throws ParsingException
ParsingExceptionpublic void parse(ReadableByteChannel channel, ByteBuffer buffer) throws IOException
IOExceptionCopyright © 2023. All rights reserved.