/** * @deprecated */ public byte[] getBytes() { return getContentBytes(); }
public void addLine(QSequenceLine line) throws IOException { if (lineCount >= Integer.MAX_VALUE) { throw new IOException("Too many lines."); } segments.setFromLengthHash(lineCount, line.getFrom(), line.getContentLength(), line.getCompareHash()); lineCount++; }
public boolean equalsLeft(int left1, int left2) throws QSequenceException { try { return leftCache.getLine(left1).equals(leftCache.getLine(left2)); } catch (IOException ex) { throw new QSequenceException(ex); } }
public QSequenceLine getLine(int index) throws IOException { final long from = segments.getFrom(index); final int length = segments.getLength(index); final byte[] bytes = new byte[length]; data.get(bytes, from, length); return new QSequenceLine(from, bytes, simplifier); }
public boolean equalsLeft(int left1, int left2) throws QSequenceException { try { return leftCache.getLine(left1).equals(leftCache.getLine(left2)); } catch (IOException ex) { throw new QSequenceException(ex); } }
public QSequenceLine getLine(int index) throws IOException { final long from = segments.getFrom(index); final int length = segments.getLength(index); final byte[] bytes = new byte[length]; data.get(bytes, from, length); return new QSequenceLine(from, bytes, simplifier); }
public void addLine(QSequenceLine line) throws IOException { if (lineCount >= Integer.MAX_VALUE) { throw new IOException("Too many lines."); } segments.setFromLengthHash(lineCount, line.getFrom(), line.getContentLength(), line.getCompareHash()); lineCount++; }
public boolean equalsLeft(int left1, int left2) throws QSequenceException { try { return leftCache.getLine(left1).equals(leftCache.getLine(left2)); } catch (IOException ex) { throw new QSequenceException(ex); } }
/** * @deprecated */ public byte[] getBytes() { return getContentBytes(); }
public QSequenceLine getLine(int index) throws IOException { final long from = segments.getFrom(index); final int length = segments.getLength(index); final byte[] bytes = new byte[length]; data.get(bytes, from, length); return new QSequenceLine(from, bytes, simplifier); }
public void addLine(QSequenceLine line) throws IOException { if (lineCount >= Integer.MAX_VALUE) { throw new IOException("Too many lines."); } segments.setFromLengthHash(lineCount, line.getFrom(), line.getContentLength(), line.getCompareHash()); lineCount++; }
public boolean equalsRight(int right1, int right2) throws QSequenceException { try { return rightCache.getLine(right1).equals(rightCache.getLine(right2)); } catch (IOException ex) { throw new QSequenceException(ex); } }
/** * @deprecated */ public byte[] getBytes() { return getContentBytes(); }
public QSequenceLine getLine(int index) throws IOException { final long from = segments.getFrom(index); final int length = segments.getLength(index); final byte[] bytes = new byte[length]; data.get(bytes, from, length); return new QSequenceLine(from, bytes, simplifier); }
public void addLine(QSequenceLine line) throws IOException { if (lineCount >= Integer.MAX_VALUE) { throw new IOException("Too many lines."); } segments.setFromLengthHash(lineCount, line.getFrom(), line.getContentLength(), line.getCompareHash()); lineCount++; }
public boolean equalsRight(int right1, int right2) throws QSequenceException { try { return rightCache.getLine(right1).equals(rightCache.getLine(right2)); } catch (IOException ex) { throw new QSequenceException(ex); } }
/** * @deprecated */ public byte[] getBytes() { return getContentBytes(); }
bytes = new byte[length]; System.arraycopy(buffer, 0, bytes, 0, length); cache.addLine(new QSequenceLine(from, bytes, simplifier));
public boolean equalsLeft(int left1, int left2) throws QSequenceException { try { return leftCache.getLine(left1).equals(leftCache.getLine(left2)); } catch (IOException ex) { throw new QSequenceException(ex); } }
private void writeLine(OutputStream os, QSequenceLine line) throws IOException { final byte[] bytes = line.getContentBytes(); if (bytes.length == 0) { return; } os.write(bytes); }