Examples of encode()


Examples of org.olat.core.commons.servlets.util.URLEncoder.encode()

    return olatResourceable;
  }
 
  public String toString(){
    URLEncoder urlE = new URLEncoder();
    String resource =urlE.encode(this.olatResourceable.getResourceableTypeName());
    return "["+resource+":"+this.olatResourceable.getResourceableId()+"]";
  }
 
  @Override
  public int hashCode() {

Examples of org.openqa.jetty.util.Resource.encode()

                context.equalsIgnoreCase("CVS") ||
                context.startsWith("."))
                continue;

           
            String app = r.addPath(r.encode(files[f])).toString();
            if (context.toLowerCase().endsWith(".war") ||
                context.toLowerCase().endsWith(".jar"))
            {
                context=context.substring(0,context.length()-4);
                Resource unpacked=r.addPath(context);

Examples of org.opensaml.ws.message.encoder.MessageEncoder.encode()

            Assert.notNull(samlContext.getLocalSigningCredential(), "Cannot sign outgoing message as no signing credential is set in the context");
            samlContext.setOutboundSAMLMessageSigningCredential(samlContext.getLocalSigningCredential());
        }

        MessageEncoder encoder = binding.getMessageEncoder();
        encoder.encode(samlContext);

        return samlContext;

    }

Examples of org.parse4j.operation.ParseFieldOperation.encode()

      }
      else if(operation instanceof DeleteFieldOperation) {
        parseData.put(key, operation.encode(PointerEncodingStrategy.get()));
      }
      else if(operation instanceof RelationOperation) {
        parseData.put(key, operation.encode(PointerEncodingStrategy.get()));
      }
      else {
        //here we deal will sub objects like ParseObject;
        Object obj = data.get(key);
        if(obj instanceof ParseObject) {

Examples of org.pdfbox.filter.Filter.encode()

        input = new BufferedInputStream(
            new RandomAccessFileInputStream( file, filteredStream.getPosition(),
                                                   filteredStream.getLength() ), BUFFER_SIZE );
        filteredStream = new RandomAccessFileOutputStream( file );
        filter.encode( input, filteredStream, this );
    }

    /**
     * This will return the filters to apply to the byte stream.
     * The method will return

Examples of org.pdfbox.pdmodel.font.PDFont.encode()

        }
        for( int i=0; i<string.length; i+=codeLength )
        {
            codeLength = 1;

            String c = font.encode( string, i, codeLength );
            if( c == null && i+1<string.length)
            {
                //maybe a multibyte encoding
                codeLength++;
                c = font.encode( string, i, codeLength );

Examples of org.pdfclown.documents.contents.fonts.Font.encode()

        frame[1] = state.textToDeviceSpace(new Point2D.Double(width,descent),true);
        frame[2] = state.textToDeviceSpace(new Point2D.Double(width,height+descent),true);
        frame[3] = state.textToDeviceSpace(new Point2D.Double(0,height+descent),true);

        // Add the text!
        add(new ShowSimpleText(font.encode(value)));
      }
      catch(Exception e)
      {throw new RuntimeException("Failed to show text.", e);}
      finally
      {end(); /* Ends the text object. */}
 

Examples of org.postgresql.core.Encoding.encode()

    public void testTransformations() throws Exception
    {
        Encoding encoding = Encoding.getDatabaseEncoding("UNICODE");
        assertEquals("ab", encoding.decode(new byte[] { 97, 98 }));

        assertEquals(2, encoding.encode("ab").length);
        assertEquals(97, encoding.encode("a")[0]);
        assertEquals(98, encoding.encode("b")[0]);

        encoding = Encoding.defaultEncoding();
        assertEquals("a".getBytes()[0], encoding.encode("a")[0]);

Examples of org.primefaces.component.column.renderer.HelperColumnRenderer.encode()

       
        if(helperKey != null) {
            HelperColumnRenderer renderer = RENDERERS.get(helperKey);
           
            if(renderer != null) {
                renderer.encode(context, column);
            }
        }
        else {
            renderChildren(context, column);
        }

Examples of org.primefaces.component.datatable.feature.DataTableFeature.encode()

        if(table.shouldEncodeFeature(context)) {
            for(Iterator<DataTableFeature> it = DataTable.FEATURES.values().iterator(); it.hasNext();) {
                DataTableFeature feature = it.next();

                if(feature.shouldEncode(context, table)) {
                    feature.encode(context, this, table);
                }
            }
        }
        else
            preRender(context, table);
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.