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 boolean
private java.nio.ByteBuffer
private int
private SVNDeltaCombiner
private java.security.MessageDigest
private java.lang.String
private long
private long
private java.util.LinkedList
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
FSInputStream
(SVNDeltaCombiner combiner, FSRepresentation representation, FSFS owner) -
Method Summary
Modifier and TypeMethodDescriptionbuildRepresentationList
(FSRepresentation firstRep, java.util.LinkedList result, FSFS owner) void
close()
static java.io.InputStream
createDeltaStream
(SVNDeltaCombiner combiner, FSRepresentation fileRep, FSFS owner) static java.io.InputStream
createDeltaStream
(SVNDeltaCombiner combiner, FSRevisionNode fileNode, FSFS owner) private int
getContents
(byte[] buffer, int offset, int length) int
read()
int
read
(byte[] buf, int offset, int length) private int
readContents
(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, transferTo
Methods 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:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException- Specified by:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
readContents
- Throws:
SVNException
-
getContents
- Throws:
SVNException
-
close
public void close()- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in 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
-