Examples of asString()


Examples of com.hp.hpl.jena.sparql.expr.NodeValue.asString()

        List<String> x = new ArrayList<String>() ;
        for ( ; iter.hasNext() ; )
        {
            NodeValue arg = iter.next();
            x.add( arg.asString() ) ;
        }
       
        return NodeValue.makeString(StrUtils.strjoin(sep, x)) ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.resultset.XMLOutput.asString()

     */
   
    public static String asXMLString(ResultSet qresults, String stylesheet)
    {
        XMLOutput xOut = new XMLOutput(stylesheet) ;
        return xOut.asString(qresults) ;
    }
   
    /** Return a string that has the result set serilized as XML (not RDF)
     *
     * @param booleanResult The boolean result to encode
View Full Code Here

Examples of com.icl.saxon.expr.Value.asString()

            if (value == null)
            {
                return null;
            }

            return value.asString();
        }
        catch (final Exception e)
        {
            if (getLogger().isDebugEnabled()) {
                getLogger().debug("Failed to evaluate '" + str + "'", e);
View Full Code Here

Examples of com.intellij.openapi.util.BuildNumber.asString()

  private static ExtensionRegister createExtensionRegister() {
    final BuildNumber buildNumber = ApplicationInfo.getInstance().getBuild();
    switch (IntelliJVersionRangeUtil.getIntelliJVersion(buildNumber)) {
      case INTELLIJ_8:
        throw new RuntimeException(String.format("This version (%s) of IntelliJ is not supported!", buildNumber.asString()));
      case INTELLIJ_9:
        return new ExtensionRegister9Impl();
      case INTELLIJ_10:
      case INTELLIJ_10_5:
        return new ExtensionRegister10Impl();
View Full Code Here

Examples of com.intellij.openapi.vcs.history.VcsRevisionNumber.asString()

          RevuBundle.message("friendlyError.failedToFetchVcsFile.nullContent.details.text",
          vFile.getPath(), contentRevision));
      }

      return new VcsVirtualFile(contentRevision.getFile().getPath(), content.getBytes(),
        vcsRevisionNumber.asString(), vFile.getFileSystem());
    }
  }
}
View Full Code Here

Examples of com.jamesmurty.utils.XMLBuilder.asString()

      try {
         XMLBuilder rootBuilder = buildRoot();
         addFirewallRuleSection(rootBuilder, firewallRule);
         Properties outputProperties = new Properties();
         outputProperties.put(javax.xml.transform.OutputKeys.OMIT_XML_DECLARATION, "yes");
         return rootBuilder.asString(outputProperties);
      } catch (Exception e) {
         return null;
      }
   }
View Full Code Here

Examples of com.jayway.restassured.response.Response.asString()

        .pathParam("id", EXAMPLE_DEPLOYMENT_ID)
        .pathParam("resourceId", EXAMPLE_DEPLOYMENT_RESOURCE_ID)
      .then().expect().statusCode(Status.OK.getStatusCode())
      .when().get(SINGLE_RESOURCE_DATA_URL);

    String responseContent = response.asString();
    assertTrue(responseContent.contains("<?xml"));

  }

  @Test
View Full Code Here

Examples of com.jitlogic.zorka.common.util.TapInputStream.asString()

        TapInputStream tis = new TapInputStream(new ByteArrayInputStream("ABCD".getBytes()));

        assertEquals(65, tis.read());
        assertEquals(66, tis.read());

        assertEquals("AB", tis.asString());
    }


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

Examples of com.jitlogic.zorka.common.util.TapOutputStream.asString()

        ByteArrayOutputStream os = new ByteArrayOutputStream();
        TapOutputStream tos = new TapOutputStream(os);

        tos.write(65); tos.write(66);

        assertEquals("AB", tos.asString());
        assertEquals("AB", new String(os.toByteArray()));
    }


    @Test
View Full Code Here

Examples of com.linkedin.data.ByteString.asString()

            RestRequest request = requestBuilder.build();
            Future<RestResponse> future = client.restRequest(request);
            // This will block
            RestResponse response = future.get();
            ByteString entity = response.getEntity();
            return entity.asString("UTF-8");
        } catch(Exception e) {
            if(e.getCause() instanceof RestException) {
                return ((RestException) e.getCause()).getResponse().getEntity().asString("UTF-8");
            }
            handleRequestAndResponseException(e);
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.