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 -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate java.nio.ByteBufferprivate intprivate SVNDeltaCombinerprivate java.security.MessageDigestprivate java.lang.Stringprivate longprivate longprivate java.util.LinkedList -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateFSInputStream(SVNDeltaCombiner combiner, FSRepresentation representation, FSFS owner) -
Method Summary
Modifier and TypeMethodDescriptionbuildRepresentationList(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) readRepresentationLine(FSFile file) Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
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
-
-
Constructor Details
-
FSInputStream
private FSInputStream(SVNDeltaCombiner combiner, FSRepresentation representation, FSFS owner) throws SVNException - Throws:
SVNException
-
-
Method Details
-
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
- Throws:
SVNException
-
getContents
- 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
-