To write SVNDiffWindow to a stream you may use its writeTo(...) method. Reading is more complicated, and there is no open API for that. You may use SVNDeltaReader and its nextWindow class to read SVNDiffWindow objects from a stream and to feed them to the ISVNDeltaConsumer (ISVNEditor) instance. Note that SVNDiffWindow keeps reference to the ByteBuffer which is shared between subsequently read windows, so you may not read and keep multiple window objects, they are expected to be read and then applied immediately.
Alexander Kitaev, TMate Software, http://svnkit.com/ - Java [Sub]Versioning Library! http://hg4j.com/ - Java Mercurial Library! http://sqljet.com/ - Java SQLite Library! On 3 October 2011 08:38, vligu <[email protected]> wrote: > > I have implemented a piece of software that download all different revisions > of a file. To optimize disk I need to store all diff windows (SVNDiffWindow) > in a file, and not all the content for each revision. How can I serialize a > diff window (let say store it as a byte array) into a file? > > Thank you in advance, Elvis. > -- > View this message in context: > http://old.nabble.com/Serializing-an-SVNDiffWindow-object-tp32580281p32580281.html > Sent from the SVNKit - Users mailing list archive at Nabble.com. > > >
