Package no.priv.garshol.duke.utils

Examples of no.priv.garshol.duke.utils.LinkFileWriter


    return match ? LinkKind.SAME : LinkKind.DIFFERENT;
  }

  public void setLinkFile(String linkfile) throws IOException {
    out = new FileWriter(linkfile, true);
    writer = new LinkFileWriter(out);
    // FIXME: strictly speaking, this leaks file handles. in practice it
    // probably won't matter
  }
View Full Code Here


      // have to start writing the link file *after* we load the test
      // file, because they may be the same file...
      // second param: if there is a test file, we append to the link
      // file, instead of overwriting
      this.out = new FileWriter(linkfile, testfile != null);
      this.writer = new LinkFileWriter(out);
      // FIXME: this will only work if the two files are the same
    }
View Full Code Here

  @Before
  public void setup() throws IOException {
    file = tmpdir.newFile("links.txt");
    writer = new FileWriter(file);
    out = new LinkFileWriter(writer);
  }
View Full Code Here

TOP

Related Classes of no.priv.garshol.duke.utils.LinkFileWriter

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.