Package com.nothome.delta.text

This package contains classes for creating patches for text files output in a GDIFF-like format.

See:
          Description

Interface Summary
DiffTextWriter Writes diff commands to a stream.
SeekableSource Text seekable source
 

Class Summary
CharBufferSeekableSource Wrapper for a CharBuffer.
Checksum Checksum that uses character streams.
Delta Class for computing deltas against a source.
GDiffTextWriter A text-file format analog for GDIFF, which is only supported for binary streams.
TextPatcher Converts a text patch and source file to a resulting target file.
 

Package com.nothome.delta.text Description

This package contains classes for creating patches for text files output in a GDIFF-like format.

The patch creation class is Delta.

The patch applier class is TextPatcher.

Example use:

 String source = ...;
 String target = ...;
 Delta d = new Delta();
 String patch = d.compute(source, target);

 TextPatcher p = new TextPatcher(source);
 String patchedSource = p.patch(patch);

 assert target.equals(patchedSource);
 

See Also:
Delta, GDiffPatcher


Copyright © 2003-2008. All Rights Reserved.