Package uk.ac.ebi.ena.sra.cram.io

Examples of uk.ac.ebi.ena.sra.cram.io.DefaultBitInputStream


      Block block = c.blocks[b++];
      if (block.contentType != ContentType.CORE.getContentType())
        throw new RuntimeException("Wrong content type: " + block.contentType);
      if (block.contentId != 0)
        throw new RuntimeException("Wrong content id: " + block.contentId);
      BitInputStream bis = new DefaultBitInputStream(new ByteArrayInputStream(block.data));

      HashMap<Integer, DataInputStream> isMap = new HashMap<Integer, DataInputStream>();
      for (short code : tagCodes)
        isMap.put((int) code, new DataInputStream(new ByteArrayInputStream(c.blocks[b++].data)));
      isMap.put(0xff & ContentType.QUAL.getContentType(), new DataInputStream(new ByteArrayInputStream(c.blocks[b++].data)));
View Full Code Here

TOP

Related Classes of uk.ac.ebi.ena.sra.cram.io.DefaultBitInputStream

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.