Code example for URI

Methods: isAbsolute

0
    assertEquals(1, inst.length());
    assertEquals("foo:1+1@1 - 2@2", inst.toString());
  } 
 
  public final void testInstance3() { 
    InputSource is = new InputSource(URI.create("t:///foo"));
    FilePosition inst = FilePosition.instance(is, 2, 30, 2, 3);
    assertEquals(is, inst.source());
    assertEquals(2, inst.startLineNo());
    assertEquals(30, inst.startCharInFile());
    assertEquals(2, inst.startCharInLine());
    assertEquals(2, inst.endLineNo());
    assertEquals(33, inst.endCharInFile());
    assertEquals(5, inst.endCharInLine());
    assertEquals(3, inst.length());
    assertEquals("foo:2+2@30 - 5@33", inst.toString());
  } 
 
  public final void testInstance4() { 
    InputSource is = new InputSource(URI.create("t:///foo"));