Package net.sf.cram.io

Examples of net.sf.cram.io.CountingInputStream


            params.cramFile), pass, 1, 128);
      }
    }

    long offset = 0;
    CountingInputStream cis = new CountingInputStream(is);
    CramHeader cramHeader = ReadWrite.readCramHeader(cis);
    offset = cis.getCount();

    SAMFileWriterFactory samFileWriterFactory = new SAMFileWriterFactory();
    samFileWriterFactory.setAsyncOutputBufferSize(10000);
    samFileWriterFactory.setCreateIndex(false);
    samFileWriterFactory.setCreateMd5File(false);
View Full Code Here


  public CountingInputStream is;
  public SAMFileHeader samFileHeader;
  public CRAMIndexer indexer;

  public BaiIndexer(InputStream is, SAMFileHeader samFileHeader, File output) {
    this.is = new CountingInputStream(is);
    this.samFileHeader = samFileHeader;

    indexer = new CRAMIndexer(output, samFileHeader);
  }
View Full Code Here

    indexer = new CRAMIndexer(output, samFileHeader);
  }

  public BaiIndexer(InputStream is, File output) throws IOException {
    this.is = new CountingInputStream(is);
    CramHeader cramHeader = ReadWrite.readCramHeader(this.is);
    samFileHeader = cramHeader.samFileHeader;

    indexer = new CRAMIndexer(output, samFileHeader);
  }
View Full Code Here

  private SAMFileHeader samFileHeader;
  private CramIndex index;

  public CraiIndexer(InputStream is, File output)
      throws FileNotFoundException, IOException {
    this.is = new CountingInputStream(is);
    CramHeader cramHeader = ReadWrite.readCramHeader(this.is);
    samFileHeader = cramHeader.samFileHeader;

    index = new CramIndex(new GZIPOutputStream(new BufferedOutputStream(
        new FileOutputStream(output))));
View Full Code Here

TOP

Related Classes of net.sf.cram.io.CountingInputStream

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.