Package freenet.support.io

Examples of freenet.support.io.LineReader


    assertEquals(sfs.toOrderedString(), key+"="+value+"\nEnd\n");
    StringWriter sw = new StringWriter();
    sfs.writeTo(sw, "", false, true);
    String written = sw.toString();
    assertEquals(written, key+"=="+base64Value+"\nEnd\n");
    LineReader r = Readers.fromBufferedReader(new BufferedReader(new StringReader(written)));
    SimpleFieldSet sfsCheck = new SimpleFieldSet(r, 1024, 1024, true, false, true, true);
    assertEquals(sfsCheck.get(key), value);
  }
View Full Code Here


    assertEquals(sfsCheck.get(key), value);
  }
 
  public void testEmptyValue() throws IOException {
    String written = "foo.blah=\nEnd\n";
    LineReader r = Readers.fromBufferedReader(new BufferedReader(new StringReader(written)));
    SimpleFieldSet sfsCheck = new SimpleFieldSet(r, 1024, 1024, true, false, true, false);
    assertTrue(sfsCheck.get("foo.blah").equals(""));
    r = Readers.fromBufferedReader(new BufferedReader(new StringReader(written)));
    sfsCheck = new SimpleFieldSet(r, 1024, 1024, true, false, true, true);
    assertTrue(sfsCheck.get("foo.blah").equals(""));
View Full Code Here

TOP

Related Classes of freenet.support.io.LineReader

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.