Examples of EncodingParams


Examples of net.sf.cram.EncodingParams

    buf.flip();
    byte[] data = new byte[buf.limit()];
    buf.get(data);

    EncodingParams params = new EncodingParams(ID, data);
    return params;
  }
View Full Code Here

Examples of net.sf.cram.EncodingParams

  }
 
  public static EncodingParams toParam(int contentId) {
    ExternalByteEncoding e = new ExternalByteEncoding() ;
    e.contentId = contentId ;
    return new EncodingParams(encodingId, e.toByteArray()) ;
  }
View Full Code Here

Examples of net.sf.cram.EncodingParams

  public static EncodingParams toParam(byte[] bfValues, int[] bfBitLens) {
    HuffmanByteEncoding e = new HuffmanByteEncoding();
    e.values = bfValues;
    e.bitLengths = bfBitLens;
    return new EncodingParams(ENCODING_ID, e.toByteArray());
  }
View Full Code Here

Examples of net.sf.cram.EncodingParams

        DataSeriesMap dsm = f.getAnnotation(DataSeriesMap.class);
        String name = dsm.name();
        if ("TAG".equals(name)) {
          Map<Integer, DataReader<byte[]>> map = new HashMap<Integer, DataReader<byte[]>>();
          for (Integer key : h.tMap.keySet()) {
            EncodingParams params = h.tMap.get(key);
            DataReader<byte[]> tagReader = createReader(
                DataSeriesType.BYTE_ARRAY, params, bis,
                inputMap);
            map.put(key, tagReader);
          }
View Full Code Here

Examples of net.sf.cram.EncodingParams

  public static EncodingParams toParam(int offset, int bitLimit) {
    BetaIntegerEncoding e = new BetaIntegerEncoding();
    e.offset = offset;
    e.bitLimit = bitLimit;
    return new EncodingParams(ENCODING_ID, e.toByteArray());
  }
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.