Class FSFile
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.io.fs.FSFile
-
public class FSFile extends java.lang.Object
- Version:
- 1.3
-
-
Field Summary
Fields Modifier and Type Field Description private java.nio.ByteBuffer
myBuffer
private long
myBufferPosition
private java.nio.channels.FileChannel
myChannel
private byte[]
myData
private java.nio.charset.CharsetDecoder
myDecoder
private java.security.MessageDigest
myDigest
private java.io.File
myFile
private long
myFooterOffset
private java.io.InputStream
myInputStream
private java.lang.String
myL2PChecksum
private long
myL2POffset
private int
myLength
private int
myOffset
private java.lang.String
myP2LChecksum
private long
myP2LOffset
private long
myPosition
private java.nio.ByteBuffer
myReadLineBuffer
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
allocateReadBuffer(int limit)
void
close()
java.lang.String
digest()
void
ensureFooterLoaded()
private int
fill()
private java.nio.channels.FileChannel
getChannel()
java.io.File
getFile()
long
getL2POffset()
long
getP2LOffset()
private void
parseFooter(java.lang.String footerString)
long
position()
int
read()
int
read(byte[] buffer, int offset, int length)
int
read(java.nio.ByteBuffer target)
java.util.Map
readHeader()
int
readInt()
java.lang.String
readLine(int limit)
java.lang.String
readLine(java.lang.StringBuffer buffer)
long
readLong()
private int
readNumberFromReportFile()
PathInfo
readPathInfoFromReportFile()
SVNProperties
readProperties(boolean allowEOF, boolean allowBinaryValues)
private long
readRevisionFromReportFile()
private java.lang.String
readStringFromReportFile()
void
resetDigest()
void
seek(long position)
long
size()
-
-
-
Field Detail
-
myFile
private java.io.File myFile
-
myData
private final byte[] myData
-
myOffset
private int myOffset
-
myLength
private int myLength
-
myChannel
private java.nio.channels.FileChannel myChannel
-
myInputStream
private java.io.InputStream myInputStream
-
myPosition
private long myPosition
-
myBufferPosition
private long myBufferPosition
-
myBuffer
private java.nio.ByteBuffer myBuffer
-
myReadLineBuffer
private java.nio.ByteBuffer myReadLineBuffer
-
myDecoder
private java.nio.charset.CharsetDecoder myDecoder
-
myDigest
private java.security.MessageDigest myDigest
-
myL2POffset
private long myL2POffset
-
myP2LOffset
private long myP2LOffset
-
myL2PChecksum
private java.lang.String myL2PChecksum
-
myP2LChecksum
private java.lang.String myP2LChecksum
-
myFooterOffset
private long myFooterOffset
-
-
Method Detail
-
seek
public void seek(long position)
-
position
public long position()
-
size
public long size()
-
resetDigest
public void resetDigest()
-
digest
public java.lang.String digest()
-
readInt
public int readInt() throws SVNException, java.lang.NumberFormatException
- Throws:
SVNException
java.lang.NumberFormatException
-
readLong
public long readLong() throws SVNException, java.lang.NumberFormatException
- Throws:
SVNException
java.lang.NumberFormatException
-
readLine
public java.lang.String readLine(int limit) throws SVNException
- Throws:
SVNException
-
readLine
public java.lang.String readLine(java.lang.StringBuffer buffer) throws SVNException
- Throws:
SVNException
-
readProperties
public SVNProperties readProperties(boolean allowEOF, boolean allowBinaryValues) throws SVNException
- Throws:
SVNException
-
readHeader
public java.util.Map readHeader() throws SVNException
- Throws:
SVNException
-
ensureFooterLoaded
public void ensureFooterLoaded() throws SVNException
- Throws:
SVNException
-
read
public int read() throws java.io.IOException
- Throws:
java.io.IOException
-
read
public int read(java.nio.ByteBuffer target) throws java.io.IOException
- Throws:
java.io.IOException
-
read
public int read(byte[] buffer, int offset, int length) throws java.io.IOException
- Throws:
java.io.IOException
-
getFile
public java.io.File getFile()
-
close
public void close()
-
fill
private int fill() throws java.io.IOException
- Throws:
java.io.IOException
-
allocateReadBuffer
private void allocateReadBuffer(int limit)
-
getChannel
private java.nio.channels.FileChannel getChannel() throws java.io.IOException
- Throws:
java.io.IOException
-
readPathInfoFromReportFile
public PathInfo readPathInfoFromReportFile() throws java.io.IOException, SVNException
- Throws:
java.io.IOException
SVNException
-
readStringFromReportFile
private java.lang.String readStringFromReportFile() throws java.io.IOException
- Throws:
java.io.IOException
-
readNumberFromReportFile
private int readNumberFromReportFile() throws java.io.IOException
- Throws:
java.io.IOException
-
readRevisionFromReportFile
private long readRevisionFromReportFile() throws java.io.IOException
- Throws:
java.io.IOException
-
parseFooter
private void parseFooter(java.lang.String footerString) throws SVNException
- Throws:
SVNException
-
getL2POffset
public long getL2POffset()
-
getP2LOffset
public long getP2LOffset()
-
-