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
FieldsModifier and TypeFieldDescriptionprivate java.nio.ByteBufferprivate longprivate java.nio.channels.FileChannelprivate final byte[]private java.nio.charset.CharsetDecoderprivate java.security.MessageDigestprivate java.io.Fileprivate longprivate java.io.InputStreamprivate java.lang.Stringprivate longprivate intprivate intprivate java.lang.Stringprivate longprivate longprivate java.nio.ByteBuffer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidallocateReadBuffer(int limit) voidclose()java.lang.Stringdigest()voidprivate intfill()private java.nio.channels.FileChanneljava.io.FilegetFile()longlongprivate voidparseFooter(java.lang.String footerString) longposition()intread()intread(byte[] buffer, int offset, int length) intread(java.nio.ByteBuffer target) java.util.MapintreadInt()java.lang.StringreadLine(int limit) java.lang.StringreadLine(java.lang.StringBuffer buffer) longreadLong()private intreadProperties(boolean allowEOF, boolean allowBinaryValues) private longprivate java.lang.Stringvoidvoidseek(long position) longsize()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
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
-
-
Constructor Details
-
FSFile
public FSFile(java.io.File file) -
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
public java.lang.String digest() -
readInt
- Throws:
SVNExceptionjava.lang.NumberFormatException
-
readLong
- Throws:
SVNExceptionjava.lang.NumberFormatException
-
readLine
- Throws:
SVNException
-
readLine
- Throws:
SVNException
-
readProperties
public SVNProperties readProperties(boolean allowEOF, boolean allowBinaryValues) throws SVNException - Throws:
SVNException
-
readHeader
- 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
- Throws:
java.io.IOExceptionSVNException
-
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
-
getL2POffset
public long getL2POffset() -
getP2LOffset
public long getP2LOffset()
-