Package com.subgraph.orchid.directory.parsing

Examples of com.subgraph.orchid.directory.parsing.DocumentObject


  public IPv4Address parseAddress() {
    return IPv4Address.createFromString(getItem());
  }

  public TorPublicKey parsePublicKey() {
    final DocumentObject documentObject = parseObject();
    return TorPublicKey.createFromPEMBuffer(documentObject.getContent());
  }
View Full Code Here


    }
    return key;
  }

  public TorSignature parseSignature() {
    final DocumentObject documentObject = parseObject();
    TorSignature s = TorSignature.createFromPEMBuffer(documentObject.getContent());
    return s;
  }
View Full Code Here

      }
    }
  }

  public DocumentObject parseTypedObject(String type) {
    final DocumentObject object = parseObject();
    if(!type.equals(object.getKeyword()))
      throw new TorParsingException("Unexpected object type.  Expecting: "+ type +", but got: "+ object.getKeyword());
    return object;
  }
View Full Code Here

  }

  public DocumentObject parseObject() {
    final String line = readLine();
    final String keyword = parseObjectHeader(line);
    final DocumentObject object = new DocumentObject(keyword, line);
    parseObjectBody(object, keyword);
    return object;
  }
View Full Code Here

      break;
    }
  }
 
  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) {
View Full Code Here

TOP

Related Classes of com.subgraph.orchid.directory.parsing.DocumentObject

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.