public class FSOutputStream extends 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(String path,
String baseChecksum)
Starts applying text delta(s) to an opened file.
|
void |
close() |
void |
closeStreams() |
static OutputStream |
createStream(FSRevisionNode revNode,
FSTransactionRoot txnRoot,
OutputStream dstStream,
boolean compress) |
FSRevisionNode |
getRevisionNode() |
OutputStream |
textDeltaChunk(String path,
SVNDiffWindow diffWindow)
Collects a next delta chunk.
|
void |
textDeltaEnd(String path)
Finalizes collecting text delta(s).
|
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
flushpublic static final int SVN_DELTA_WINDOW_SIZE
public static final int WRITE_BUFFER_SIZE
public static OutputStream createStream(FSRevisionNode revNode, FSTransactionRoot txnRoot, OutputStream dstStream, boolean compress) throws SVNException
SVNExceptionpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void closeStreams()
throws IOException
IOExceptionpublic FSRevisionNode getRevisionNode()
public OutputStream textDeltaChunk(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(String path) throws SVNException
ISVNDeltaConsumertextDeltaEnd in interface ISVNDeltaConsumerpath - a file path relative to the edit root
directorySVNExceptionpublic void applyTextDelta(String path, 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 © 2025. All rights reserved.