Package com.subgraph.orchid.directory.parsing

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


  }
 
  private void processBandwidthWeights() {
    final int remaining = fieldParser.argumentsRemaining();
    for(int i = 0; i < remaining; i++) {
      NameIntegerParameter p = fieldParser.parseParameter();
      document.addBandwidthWeight(p.getName(), p.getValue());
    }
  }
View Full Code Here


  }
 
  private void parseParams() {
    final int remaining = fieldParser.argumentsRemaining();
    for(int i = 0; i < remaining; i++) {
      NameIntegerParameter p = fieldParser.parseParameter();
      document.addParameter(p.getName(), p.getValue());
    }
  }
View Full Code Here

      throw new TorParsingException("Parameter not in expected form name=value");
    }
    final String name = item.substring(0, eq);
    validateParameterName(name);
    final int value = parseInteger(item.substring(eq + 1));
    return new NameIntegerParameter(name, value);
  }
View Full Code Here

TOP

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

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.