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 class
FSInputStream.FSRepresentationState
-
Field Summary
Fields Modifier and Type Field Description private boolean
isChecksumFinalized
private java.nio.ByteBuffer
myBuffer
private int
myChunkIndex
private SVNDeltaCombiner
myCombiner
private java.security.MessageDigest
myDigest
private java.lang.String
myHexChecksum
private long
myLength
private long
myOffset
private java.util.LinkedList
myRepStateList
-
Constructor Summary
Constructors Modifier Constructor Description private
FSInputStream(SVNDeltaCombiner combiner, FSRepresentation representation, FSFS owner)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private FSInputStream.FSRepresentationState
buildRepresentationList(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)
static FSInputStream.FSRepresentationState
readRepresentationLine(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:
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
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:
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
-
-