Examples of SeekableFileStream


Examples of net.sf.samtools.util.SeekableFileStream

    if (params.cramFile != null) {
      FileInputStream fis = new FileInputStream(params.cramFile);
      if (params.locations == null || params.locations.isEmpty())
        is = new BufferedInputStream(fis);
      else
        is = new SeekableFileStream(params.cramFile);
    } else
      is = System.in;

    if (params.decrypt) {
      CipherInputStream_256 cipherInputStream_256 = new CipherInputStream_256(
          is, pass, 128);
      is = cipherInputStream_256.getCipherInputStream();
      if (params.locations != null && !params.locations.isEmpty()) {
        is = new SeekableCipherStream_256(new SeekableFileStream(
            params.cramFile), pass, 1, 128);
      }
    }

    long offset = 0;
View Full Code Here

Examples of net.sf.samtools.util.SeekableFileStream

      return emptyIterator;

    SeekableStream s = null;
    if (file != null) {
      try {
        s = new SeekableFileStream(file);
      } catch (FileNotFoundException e) {
        throw new RuntimeException(e);
      }
    } else if (is instanceof SeekableStream)
      s = (SeekableStream) is;
View Full Code Here

Examples of net.sf.samtools.util.SeekableFileStream

    final long startOfLastLinearBin = getIndex().getStartOfLastLinearBin();

    SeekableStream s = null;
    if (file != null) {
      try {
        s = new SeekableFileStream(file);
      } catch (FileNotFoundException e) {
        throw new RuntimeException(e);
      }
    } else if (is instanceof SeekableStream)
      s = (SeekableStream) is;
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.