public class FSOutputStream extends java.io.OutputStream implements ISVNDeltaConsumer
| Modifier and Type | Field and Description |
|---|---|
static int |
SVN_DELTA_WINDOW_SIZE |
static int |
WRITE_BUFFER_SIZE |
| Modifier and Type | Method and Description |
|---|---|
void |
applyTextDelta(java.lang.String path,
java.lang.String baseChecksum)
Starts applying text delta(s) to an opened file.
|
void |
close() |
void |
closeStreams(long truncateToSize) |
static java.io.OutputStream |
createStream(FSRevisionNode revNode,
FSTransactionRoot txnRoot,
java.io.OutputStream dstStream,
boolean compress) |
FSRevisionNode |
getRevisionNode() |
java.io.OutputStream |
textDeltaChunk(java.lang.String path,
SVNDiffWindow diffWindow)
Collects a next delta chunk.
|
void |
textDeltaEnd(java.lang.String path)
Finalizes collecting text delta(s).
|
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public static final int SVN_DELTA_WINDOW_SIZE
public static final int WRITE_BUFFER_SIZE
public static java.io.OutputStream createStream(FSRevisionNode revNode, FSTransactionRoot txnRoot, java.io.OutputStream dstStream, boolean compress) throws SVNException
SVNExceptionpublic void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionpublic void closeStreams(long truncateToSize)
throws java.io.IOException
java.io.IOExceptionpublic FSRevisionNode getRevisionNode()
public java.io.OutputStream textDeltaChunk(java.lang.String path,
SVNDiffWindow diffWindow)
throws SVNException
ISVNDeltaConsumerIf there are more than one windows for the file, this method is called several times.
textDeltaChunk in interface ISVNDeltaConsumerpath - a file path relative to the edit root
directorydiffWindow - a next diff windowSVNExceptionpublic void textDeltaEnd(java.lang.String path)
throws SVNException
ISVNDeltaConsumertextDeltaEnd in interface ISVNDeltaConsumerpath - a file path relative to the edit root
directorySVNExceptionpublic void applyTextDelta(java.lang.String path,
java.lang.String baseChecksum)
throws SVNException
ISVNDeltaConsumerapplyTextDelta in interface ISVNDeltaConsumerpath - a file path relative to the edit root
directorybaseChecksum - an MD5 checksum for the base file contents (before the
file is changed)SVNException - if the calculated base file checksum didn't match the expected
baseChecksumCopyright © 2004-2012 TMate Software Ltd. All Rights Reserved.