Package net.sf.cram

Examples of net.sf.cram.EncodingParams


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


  public static EncodingParams toParam(int offset, int m) {
    GolombLongEncoding e = new GolombLongEncoding();
    e.offset = offset;
    e.m = m;
    return new EncodingParams(ENCODING_ID, e.toByteArray());
  }
View Full Code Here

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

  public static EncodingParams toParam(int offset, boolean stopBit) {
    UnaryIntegerEncoding e = new UnaryIntegerEncoding();
    e.offset = offset ;
    e.stopBit = stopBit ;
    return new EncodingParams(ENCODING_ID, e.toByteArray());
  }
View Full Code Here

  }

  public static EncodingParams toParam(int offset) {
    GammaIntegerEncoding e = new GammaIntegerEncoding();
    e.offset = offset ;
    return new EncodingParams(ENCODING_ID, e.toByteArray());
  }
View Full Code Here

  public static EncodingParams toParam(int offset, int k) {
    SubexpIntegerEncoding e = new SubexpIntegerEncoding();
    e.offset = offset;
    e.k = k;
    return new EncodingParams(ENCODING_ID, e.toByteArray());
  }
View Full Code Here

  public EncodingID id() {
    return ENCODING_ID;
  }

  public static EncodingParams toParam() {
    return new EncodingParams(ENCODING_ID, new NullEncoding().toByteArray());
  }
View Full Code Here

  public static EncodingParams toParam(int offset, int m) {
    GolombRiceIntegerEncoding e = new GolombRiceIntegerEncoding();
    e.offset= offset;
    e.m = m;
    return new EncodingParams(ENCODING_ID, e.toByteArray());
  }
View Full Code Here

  }

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

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

TOP

Related Classes of net.sf.cram.EncodingParams

Copyright © 2018 www.massapicom. 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.