Package com.subgraph.orchid.directory

Examples of com.subgraph.orchid.directory.DocumentFieldParserImpl


    return new IntroductionPointParser(createFieldParser(s));
  }
 
  private DocumentFieldParser createFieldParser(String s) {
    ByteBuffer buffer = ByteBuffer.wrap(s.getBytes(Tor.getDefaultCharset()));
    return new DocumentFieldParserImpl(buffer);
  }
View Full Code Here


      throw new OpenFailedException("Failed to extend circuit to HS directory: "+ e.getMessage());
    }
  }

  private HSDescriptor readDocument(HSDescriptorDirectory dd, ByteBuffer body) {
    DocumentFieldParserImpl fieldParser = new DocumentFieldParserImpl(body);
    HSDescriptorParser parser = new HSDescriptorParser(hiddenService, fieldParser, hiddenService.getAuthenticationCookie());
    DescriptorParseResult result = new DescriptorParseResult(dd);
    parser.parse(result);
    return result.getDescriptor();
  }
View Full Code Here

  }
 
  private void processIntroductionPoints() {
    final DocumentObject ob = fieldParser.parseObject();
    final ByteBuffer buffer = createIntroductionPointBuffer(ob);
    final IntroductionPointParser parser = new IntroductionPointParser(new DocumentFieldParserImpl(buffer));
    parser.parse(new DocumentParsingResultHandler<IntroductionPoint>() {

      public void documentParsed(IntroductionPoint document) {
        logger.fine("adding intro point "+ document.getIdentity());
        descriptor.addIntroductionPoint(document);
View Full Code Here

TOP

Related Classes of com.subgraph.orchid.directory.DocumentFieldParserImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.