Class FSFile
java.lang.Object
org.tmatesoft.svn.core.internal.io.fs.FSFile
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ByteBuffer
private long
private FileChannel
private final byte[]
private CharsetDecoder
private MessageDigest
private File
private long
private InputStream
private String
private long
private int
private int
private String
private long
private long
private ByteBuffer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
allocateReadBuffer
(int limit) void
close()
digest()
void
private int
fill()
private FileChannel
getFile()
long
long
private void
parseFooter
(String footerString) long
position()
int
read()
int
read
(byte[] buffer, int offset, int length) int
read
(ByteBuffer target) int
readInt()
readLine
(int limit) readLine
(StringBuffer buffer) long
readLong()
private int
readProperties
(boolean allowEOF, boolean allowBinaryValues) private long
private String
void
void
seek
(long position) long
size()
-
Field Details
-
myFile
-
myData
private final byte[] myData -
myOffset
private int myOffset -
myLength
private int myLength -
myChannel
-
myInputStream
-
myPosition
private long myPosition -
myBufferPosition
private long myBufferPosition -
myBuffer
-
myReadLineBuffer
-
myDecoder
-
myDigest
-
myL2POffset
private long myL2POffset -
myP2LOffset
private long myP2LOffset -
myL2PChecksum
-
myP2LChecksum
-
-
Constructor Details
-
FSFile
-
FSFile
public FSFile(byte[] data) -
FSFile
public FSFile(byte[] data, int offset, int length)
-
-
Method Details
-
seek
public void seek(long position) -
position
public long position() -
size
public long size() -
resetDigest
public void resetDigest() -
digest
-
readInt
- Throws:
SVNException
NumberFormatException
-
readLong
- Throws:
SVNException
NumberFormatException
-
readLine
- Throws:
SVNException
-
readLine
- Throws:
SVNException
-
readProperties
public SVNProperties readProperties(boolean allowEOF, boolean allowBinaryValues) throws SVNException - Throws:
SVNException
-
readHeader
- Throws:
SVNException
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
getFile
-
close
public void close() -
fill
- Throws:
IOException
-
allocateReadBuffer
private void allocateReadBuffer(int limit) -
getChannel
- Throws:
IOException
-
readPathInfoFromReportFile
- Throws:
IOException
SVNException
-
readStringFromReportFile
- Throws:
IOException
-
readNumberFromReportFile
- Throws:
IOException
-
readRevisionFromReportFile
- Throws:
IOException
-
getL2POffset
public long getL2POffset() -
getP2LOffset
public long getP2LOffset()
-