Package wyfs.io

Examples of wyfs.io.BinaryInputStream


  private NameID[] namePool;
  private Constant[] constantPool;
  private Type[] typePool;

  public WyilFileReader(String filename) throws IOException {
    this.input = new BinaryInputStream(new FileInputStream(filename));
  }
View Full Code Here


  public WyilFileReader(String filename) throws IOException {
    this.input = new BinaryInputStream(new FileInputStream(filename));
  }

  public WyilFileReader(InputStream input) throws IOException {
    this.input = new BinaryInputStream(input);
  }
View Full Code Here

      }

      GenericReader<Automaton> reader;
      GenericWriter<Automaton> writer;
      if(binaryIn) {
        BinaryInputStream bis = new BinaryInputStream(input);
        reader = new BinaryAutomataReader(bis);
      } else {
        reader = null; // TODO
      }
      if(binaryOut) {
View Full Code Here

        System.exit(1);
      }


      ArrayList<Term> model = readModel(
          new BinaryAutomataReader(new BinaryInputStream(
              new FileInputStream(args[index]))), verbose);
      ArrayList<Automaton> automata = readAutomatas(
          new BinaryAutomataReader(new BinaryInputStream(
              new FileInputStream(args[index + 1]))), verbose);

      if(minimiseTest) {
        minimiseTest(new DefaultInterpretation(),model,automata,verbose);
      }
View Full Code Here

    try {
      boolean binaryIn = true;
      int index = 0;
      String mode = args[index++];
      ArrayList<DefaultInterpretation.Term> model = Tester.readModel(
          new Type.BinaryReader(new BinaryInputStream(
              new FileInputStream(args[index]))), verbose);
      ArrayList<Automaton> types = Tester.readAutomatas(
          new Type.BinaryReader(new BinaryInputStream(
              new FileInputStream(args[index+1]))), verbose);

      if(mode.equals("-subtypes")) {
        generateSubtypeTests(types,model);
      } else {
View Full Code Here

  private Value[] constantPool;
  private SemanticType[] typePool;

  public WycsFileReader(Path.Entry<WycsFile> entry, InputStream input) {
    this.entry = entry;
    this.input = new BinaryInputStream(input);
  }
View Full Code Here

    }
  }

  public static WyType valueOf(String str) throws IOException {
    JavaIdentifierInputStream jin = new JavaIdentifierInputStream(str);
    BinaryInputStream bin = new BinaryInputStream(jin);
    ArrayList<WyType> nodes = new ArrayList<WyType>();
    int size = bin.read_uv();
    for(int i=0;i!=size;++i) {
      nodes.add(readNode(bin, nodes));
    }
    for(int i=0;i!=size;++i) {
      substitute(nodes.get(i),nodes);
View Full Code Here

   * @return
   */
  public static Type Type(String str) {
    try {
      JavaIdentifierInputStream jin = new JavaIdentifierInputStream(str);
      BinaryInputStream bin = new BinaryInputStream(jin);
      BinaryAutomataReader reader = new BinaryAutomataReader(bin,
          Types.SCHEMA);
      Automaton automaton = reader.read();
      reader.close();

View Full Code Here

TOP

Related Classes of wyfs.io.BinaryInputStream

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.