Class FSInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.tmatesoft.svn.core.internal.io.fs.FSInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class FSInputStream extends java.io.InputStream- Version:
- 1.3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFSInputStream.FSRepresentationState
-
Field Summary
Fields Modifier and Type Field Description private booleanisChecksumFinalizedprivate java.nio.ByteBuffermyBufferprivate intmyChunkIndexprivate SVNDeltaCombinermyCombinerprivate java.security.MessageDigestmyDigestprivate java.lang.StringmyHexChecksumprivate longmyLengthprivate longmyOffsetprivate java.util.LinkedListmyRepStateList
-
Constructor Summary
Constructors Modifier Constructor Description privateFSInputStream(SVNDeltaCombiner combiner, FSRepresentation representation, FSFS owner)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private FSInputStream.FSRepresentationStatebuildRepresentationList(FSRepresentation firstRep, java.util.LinkedList result, FSFS owner)voidclose()static java.io.InputStreamcreateDeltaStream(SVNDeltaCombiner combiner, FSRepresentation fileRep, FSFS owner)static java.io.InputStreamcreateDeltaStream(SVNDeltaCombiner combiner, FSRevisionNode fileNode, FSFS owner)private intgetContents(byte[] buffer, int offset, int length)intread()intread(byte[] buf, int offset, int length)private intreadContents(byte[] buf, int offset, int length)static FSInputStream.FSRepresentationStatereadRepresentationLine(FSFile file)
-
-
-
Field Detail
-
myRepStateList
private java.util.LinkedList myRepStateList
-
myChunkIndex
private int myChunkIndex
-
isChecksumFinalized
private boolean isChecksumFinalized
-
myHexChecksum
private java.lang.String myHexChecksum
-
myLength
private long myLength
-
myOffset
private long myOffset
-
myDigest
private java.security.MessageDigest myDigest
-
myBuffer
private java.nio.ByteBuffer myBuffer
-
myCombiner
private SVNDeltaCombiner myCombiner
-
-
Constructor Detail
-
FSInputStream
private FSInputStream(SVNDeltaCombiner combiner, FSRepresentation representation, FSFS owner) throws SVNException
- Throws:
SVNException
-
-
Method Detail
-
createDeltaStream
public static java.io.InputStream createDeltaStream(SVNDeltaCombiner combiner, FSRevisionNode fileNode, FSFS owner) throws SVNException
- Throws:
SVNException
-
createDeltaStream
public static java.io.InputStream createDeltaStream(SVNDeltaCombiner combiner, FSRepresentation fileRep, FSFS owner) throws SVNException
- Throws:
SVNException
-
read
public int read(byte[] buf, int offset, int length) throws java.io.IOException- Overrides:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException- Specified by:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
readContents
private int readContents(byte[] buf, int offset, int length) throws SVNException- Throws:
SVNException
-
getContents
private int getContents(byte[] buffer, int offset, int length) throws SVNException- Throws:
SVNException
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.InputStream
-
buildRepresentationList
private FSInputStream.FSRepresentationState buildRepresentationList(FSRepresentation firstRep, java.util.LinkedList result, FSFS owner) throws SVNException
- Throws:
SVNException
-
readRepresentationLine
public static FSInputStream.FSRepresentationState readRepresentationLine(FSFile file) throws SVNException
- Throws:
SVNException
-
-