Package com.perforce.p4java.diff
Class Sequence
java.lang.Object
com.perforce.p4java.diff.Sequence
- All Implemented Interfaces:
ISequence,Closeable,AutoCloseable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intCopyLines(AtomicInteger l, int m, byte[] buf, int length, Sequence.LineType lineType) voidbooleanDump(PrintWriter out, AtomicInteger l, int m, Sequence.LineType lineType) booleanlongLength(int l) longLength(int l, int m) longLengthLeft(int l) intLines()booleanProbablyEqual(int lA, ISequence b, int lB) voidReuse(RpcPerforceFile f, Charset charset) voidSeekLine(int l) voidStoreLine(int intue)
-
Field Details
-
P4TUNE_FILESYS_BUFSIZE
public static int P4TUNE_FILESYS_BUFSIZE
-
-
Constructor Details
-
Sequence
-
Sequence
public Sequence(RpcPerforceFile f, Charset charset, DiffFlags flags) throws IOException, FileEncoderException - Throws:
IOExceptionFileEncoderException
-
-
Method Details
-
Lines
public int Lines() -
SeekLine
- Throws:
IOExceptionFileEncoderException
-
CopyLines
public int CopyLines(AtomicInteger l, int m, byte[] buf, int length, Sequence.LineType lineType) throws IOException - Throws:
IOException
-
Dump
public boolean Dump(PrintWriter out, AtomicInteger l, int m, Sequence.LineType lineType) throws IOException - Throws:
IOException
-
Length
public long Length(int l) -
Length
public long Length(int l, int m) -
LengthLeft
public long LengthLeft(int l) -
Equal
- Specified by:
Equalin interfaceISequence- Throws:
IOExceptionFileEncoderException
-
ProbablyEqual
- Specified by:
ProbablyEqualin interfaceISequence
-
StoreLine
public void StoreLine(int intue) -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
deleteFile
public void deleteFile() -
Reuse
- Throws:
FileEncoderExceptionIOException
-