Package com.ngt.jopenmetaverse.shared.structureddata

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSD.asUri()


    public void DeserializeURI() throws IOException, OSDException, URISyntaxException
    {
        OSD llsdURI = BinaryLLSDOSDParser.DeserializeLLSDBinary(binaryURI);
        Assert.assertEquals(OSDType.URI, llsdURI.getType());
        URI uri = new URI("http://www.testurl.test/");
        Assert.assertEquals(uri, llsdURI.asUri());

    }

    @Test
    public void SerializeURI() throws Exception
View Full Code Here


              OSD llsdOne = OSD.FromUri(uriOne[0]);
              String sUriOne = NotationalLLSDOSDParser.SerializeLLSDNotation(llsdOne);
//              System.out.println("sUriOne: " + sUriOne);
              OSD llsdOneDS = NotationalLLSDOSDParser.DeserializeLLSDNotation(sUriOne);
              Assert.assertEquals(OSDType.URI, llsdOneDS.getType());
              Assert.assertEquals(uriOne[0], llsdOneDS.asUri());

            URI uriTwo[] = new URI[1];

            Utils.tryParseUri("test/test/near/the/end?test=1", uriTwo);
              OSD llsdTwo = OSD.FromUri(uriTwo[0]);
View Full Code Here

            Utils.tryParseUri("test/test/near/the/end?test=1", uriTwo);
              OSD llsdTwo = OSD.FromUri(uriTwo[0]);
              String sUriTwo = NotationalLLSDOSDParser.SerializeLLSDNotation(llsdTwo);
              OSD llsdTwoDS = NotationalLLSDOSDParser.DeserializeLLSDNotation(sUriTwo);
              Assert.assertEquals(OSDType.URI, llsdTwoDS.getType());
              Assert.assertEquals(uriTwo[0], llsdTwoDS.asUri());
          }

          @Test
          public void DeserializeDate() throws OSDException, IOException
          {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.