Examples of convert()


Examples of org.chromium.sdk.util.ByteToCharConverter.convert()

        }

        private int readImpl(byte[] buf, int off, int len) throws IOException {
          int res = originalInputStream.read(buf, off, len);
          if (res > 0) {
            CharBuffer charBuffer = byteToCharConverter.convert(ByteBuffer.wrap(buf, off, res));
            listener.addContent(charBuffer);
          }
          return res;
        }
      };
View Full Code Here

Examples of org.cishell.service.conversion.Converter.convert()

      (FileSaverService) this.bundleContext.getService(fileSaverServiceReference);

    Converter converter =
      fileSaver.promptForConverter(datum, FileSaverService.ANY_FILE_EXTENSION);

    return converter.convert(datum);
  }

  private String[] formConvertedFilePaths(Data[] convertedData) {
    String[] convertedFilePaths = new String[convertedData.length];
View Full Code Here

Examples of org.cishell.service.conversion.DataConversionService.convert()

        DataModelRegistry dmRegistry = (DataModelRegistry) dmReg.getService();
       
        Data dm = dmRegistry.getDataModel(dataModelID);
        if (dm != null) {
            try {
        dm = converter.convert(dm, outFormat);
      } catch (ConversionException e) {
        dm = null;
      }
           
            if (dm != null) {
View Full Code Here

Examples of org.codehaus.enunciate.template.freemarker.ClientClassnameForMethod.convert()

    ClientClassnameForMethod classnameFor14Method = new ClientClassnameForMethod(conversions);
    ClientClassnameForMethod classnameFor15Method = new ClientClassnameForMethod(conversions);
    classnameFor15Method.setJdk15(true);
    TypeDeclaration classDeclaration = getDeclaration("org.codehaus.enunciate.samples.xfire_client.with.a.nested.pckg.NestedPackageClass");
    assertEquals("org.codehaus.enunciate.other.pckg.and.nested.pckg.NestedPackageClass", classnameFor14Method.convert(classDeclaration));
    assertEquals("org.codehaus.enunciate.other.pckg.and.nested.pckg.NestedPackageClass", classnameFor15Method.convert(classDeclaration));
    for (FieldDeclaration fieldDeclaration : classDeclaration.getFields()) {
      if ("items".equals(fieldDeclaration.getSimpleName())) {
        assertEquals(Collection.class.getName(), classnameFor14Method.convert(fieldDeclaration.getType()));
        assertEquals("java.util.Collection<org.codehaus.enunciate.other.pckg.and.nested.pckg.NestedPackageItem>", classnameFor15Method.convert(fieldDeclaration.getType()));
      }
View Full Code Here

Examples of org.codehaus.enunciate.template.freemarker.ComponentTypeForMethod.convert()

    component15For.setJdk15(true);
    TypeDeclaration classDeclaration = getDeclaration("org.codehaus.enunciate.samples.xfire_client.with.a.nested.pckg.NestedPackageClass");
    for (FieldDeclaration fieldDeclaration : classDeclaration.getFields()) {
      if ("items".equals(fieldDeclaration.getSimpleName())) {
        assertEquals("org.codehaus.enunciate.other.pckg.and.nested.pckg.NestedPackageItem", component14For.convert(fieldDeclaration.getType()));
        assertEquals("org.codehaus.enunciate.other.pckg.and.nested.pckg.NestedPackageItem", component15For.convert(fieldDeclaration.getType()));
      }
      else if ("type".equals(fieldDeclaration.getSimpleName())) {
        assertEquals("org.codehaus.enunciate.other.pckg.and.nested.pckg.NestedPackageEnum", component14For.convert(fieldDeclaration.getType()));
        assertEquals("org.codehaus.enunciate.other.pckg.and.nested.pckg.NestedPackageEnum", component15For.convert(fieldDeclaration.getType()));
      }
View Full Code Here

Examples of org.codehaus.groovy.control.SourceUnit.convert()

                                  List availDecls ) throws Exception
    {
        SourceUnit unit = SourceUnit.create( "groovy.script", text );       
        unit.parse( );
        unit.nextPhase();
        unit.convert( );
        ModuleNode module = unit.getAST( );

        ClassNode classNode = ( ClassNode ) module.getClasses( ).get( 0 );
        List methods = classNode.getDeclaredMethods( "run" );
        MethodNode method = ( MethodNode ) methods.get( 0 );
View Full Code Here

Examples of org.cojen.classfile.CodeBuilder.convert()

                }

                b.loadLocal(valueVar);
                b.loadLocal(beanVar);
                b.invoke(bp.getReadMethod());
                b.convert(TypeDesc.forClass(bp.getType()), TypeDesc.OBJECT);
                b.invokeVirtual(Object.class.getName(), "equals", TypeDesc.BOOLEAN, params);

                Label noMatch = b.createLabel();
                b.ifZeroComparisonBranch(noMatch, "==");
                b.loadConstant(true);
View Full Code Here

Examples of org.datanucleus.util.RegularExpressionConverter.convert()

                    dba.getPatternExpressionAnyCharacter().charAt(0),
                    dba.getEscapeCharacter().charAt(0));
                if (caseSensitive)
                {
                    SQLExpression patternExpr = exprFactory.newLiteral(stmt,
                        likeExpr.getJavaTypeMapping(), converter.convert(pattern).toLowerCase());
                    return getBooleanLikeExpression(expr.invoke("toLowerCase", null), patternExpr, escapeExpr);
                }
                else
                {
                    SQLExpression patternExpr = exprFactory.newLiteral(stmt,
View Full Code Here

Examples of org.docx4j.convert.in.xhtml.XHTMLImporter.convert()

//              BindingHandler.getHyperlinkResolver().getHyperlinkStyleId());
     
      String baseUrl = null;
      List<Object> results = null;
      try {
        results = xHTMLImporter.convert(r, baseUrl );
//            Method convertMethod = xhtmlImporterClass.getMethod("convert", String.class, String.class, WordprocessingMLPackage.class );
//            results = (List<Object>)convertMethod.invoke(null, r, baseUrl, pkg);
           
      } catch (Exception e) {
        if (e instanceof NullPointerException) {
View Full Code Here

Examples of org.docx4j.convert.in.xhtml.XHTMLImporterImpl.convert()

      XHTMLImporterImpl xHTMLImporter = new XHTMLImporterImpl(wordMLPackage);
      xHTMLImporter.setHyperlinkStyle("Hyperlink");

      InputStream stream = new ByteArrayInputStream(xhtml.getBytes());
      wordMLPackage.getMainDocumentPart().getContent().addAll(xHTMLImporter.convert(stream, null));

      wordMLPackage.save(new File(fileNamePath));

      // Construye la URL de acceso al informe PDF generado
      URL url = new URL(workspace.getUrl());
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.