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
SVNException
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException
public void closeStreams(long truncateToSize) throws java.io.IOException
java.io.IOException
public FSRevisionNode getRevisionNode()
public java.io.OutputStream textDeltaChunk(java.lang.String path, SVNDiffWindow diffWindow) throws SVNException
ISVNDeltaConsumer
If there are more than one windows for the file, this method is called several times.
textDeltaChunk
in interface ISVNDeltaConsumer
path
- a file path relative to the edit root
directorydiffWindow
- a next diff windowSVNException
public void textDeltaEnd(java.lang.String path) throws SVNException
ISVNDeltaConsumer
textDeltaEnd
in interface ISVNDeltaConsumer
path
- a file path relative to the edit root
directorySVNException
public void applyTextDelta(java.lang.String path, java.lang.String baseChecksum) throws SVNException
ISVNDeltaConsumer
applyTextDelta
in interface ISVNDeltaConsumer
path
- 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
baseChecksum
Copyright © 2004-2012 TMate Software Ltd. All Rights Reserved.