Class GeminiParser

java.lang.Object
org.netpreserve.jwarc.MessageParser
org.netpreserve.jwarc.GeminiParser

public class GeminiParser extends MessageParser
  • Constructor Details

    • GeminiParser

      public GeminiParser()
  • Method Details

    • reset

      public void reset()
    • status

      public int status()
    • meta

      public String meta()
    • url

      public String 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

      public void parse(ByteBuffer data) throws ParsingException
      Runs the parser on a buffer of data. Passing null as the buffer indicates the end of input.
      Throws:
      ParsingException
    • parse

      public void parse(ReadableByteChannel channel, ByteBuffer buffer) throws IOException
      Throws:
      IOException