Examples of encode()


Examples of com.lbslocal.cc.common.PolylineEncoder.Encode()

      Point[] pt = new Point[0];
      PolylineEncoder pe = new PolylineEncoder();
      PolylineEncoder.PointsToTrack(pt);

      ep = pe.Encode(PolylineEncoder.PointsToTrack(pt));
    } catch (Exception e) {
      throw (new Exception(e.getMessage()));
    }

    return ep;

Examples of com.lightcrafts.media.jai.codec.ImageEncoder.encode()

        }

        // Store the data.
        RenderedImage im = (RenderedImage)paramBlock.getSource(0);
        try {
            encoder.encode(im);
            stream.flush();
      // Fix 4665208: EncodeRIF closed the stream after flush
      // User may put more into the stream
            //stream.close();
        } catch (IOException e) {

Examples of com.lightcrafts.mediax.jai.tilecodec.TileEncoder.encode()

      ByteArrayOutputStream stream = new ByteArrayOutputStream();
      TileEncoder encoder = tef.createEncoder(stream, tcpl,
                r.getSampleModel());

      try {
    encoder.encode(r);
      } catch (java.io.IOException ioe) {
    throw new RuntimeException(ioe.getMessage());
      }

      return stream.toByteArray();

Examples of com.linkedin.data.schema.SchemaToJsonEncoder.encode()

    jsonBuilder.writeStartArray();

    List<NamedDataSchema> models = generateModelList();

    for(DataSchema model : models){
      encoder.encode(model);
    }

    jsonBuilder.writeEndArray();

    jsonBuilder.writeFieldName(Snapshot.SCHEMA_KEY);

Examples of com.linkedin.parseq.trace.codec.json.JsonTraceCodec.encode()

      if (trace != null)
      {
        //Serialize the Parseq trace into JSON.
        JsonTraceCodec traceCodec = new JsonTraceCodec();
        traceCodec.encode(trace, outputStream);
      }
    }
    catch (IOException exception)
    {
      callback.onError(new RestLiServiceException(HttpStatus.S_500_INTERNAL_SERVER_ERROR, exception));

Examples of com.mongodb.DefaultDBEncoder.encode()

       
        DefaultDBEncoder encoder = new DefaultDBEncoder();
        BSONObject bsonObject = new BasicDBObject();
        bsonObject.put("_id", "testInsertBsonString");
       
        Object result = template.requestBody("direct:insertJsonString", new ByteArrayInputStream(encoder.encode(bsonObject)));
        assertTrue(result instanceof WriteResult);
        DBObject b = testCollection.findOne("testInsertBsonString");
        assertNotNull("No record with 'testInsertBsonString' _id", b);
    }
   

Examples of com.mxgraph.io.mxCodec.encode()

          graphComponent.getCanvas());

      // Creates the URL-encoded XML data
      mxCodec codec = new mxCodec();
      String xml = URLEncoder.encode(
          mxUtils.getXml(codec.encode(graph.getModel())), "UTF-8");
      mxPngEncodeParam param = mxPngEncodeParam
          .getDefaultEncodeParam(image);
      param.setCompressedText(new String[] { "mxGraphModel", xml });

      // Saves as a PNG file

Examples of com.mxgraph.util.png.mxPngImageEncoder.encode()

        mxPngImageEncoder encoder = new mxPngImageEncoder(outputStream,
            param);

        if (image != null)
        {
          encoder.encode(image);

          editor.setModified(false);
          editor.setCurrentFile(new File(filename));
        }
        else

Examples of com.nearinfinity.honeycomb.hbase.rowkey.DataRowKey.encode()

    }

    @Override
    public Row getRow(UUID uuid) {
        DataRowKey dataRow = new DataRowKey(tableId, uuid);
        Get get = new Get(dataRow.encode());
        Result result = HBaseOperations.performGet(hTable, get);
        if (result.isEmpty()) {
            throw new RowNotFoundException(uuid);
        }
        return Row.deserialize(result.getValue(columnFamily.getBytes(), new byte[0]));

Examples of com.nearinfinity.honeycomb.hbase.rowkey.IndexRowKey.encode()

        IndexRowKey endRow = IndexRowKeyBuilder
                .newBuilder(tableId, indexId + 1)
                .withSortOrder(SortOrder.Ascending)
                .build();

        return createScannerForRange(startRow.encode(), endRow.encode());
    }

    @Override
    public Scanner ascendingIndexScanAt(QueryKey key) {
        final TableSchema schema = store.getSchema(tableId);
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.