copying noah's work to h3

[HER-1506] correct javadoc on use of these classes
* GenericReplayCharSequence.java
* Latin1ByteReplayCharSequence.java
This commit is contained in:
gojomo committed 2009-05-14 21:12:34 +00:00
1 parent 5baac7cc45
commit ad33d302ff
2 files changed
+6 -4

No files matched your search

@@ -39,9 +39,9 @@ import java.util.logging.Logger;
* buffer and overflow backing file) that can handle streams of multibyte
* characters.
*
* If possible, use {@link Latin1ByteReplayCharSequence}. It performs better even
* for the single byte case (Decoding is an expensive process).
*
* For better performance on ISO-8859-1 text, use
* {@link Latin1ByteReplayCharSequence}.
*
* <p>Call close on this class when done so can clean up resources.
*
* <p>Implementation currently works by checking to see if content to read
@@ -33,7 +33,9 @@ import org.archive.util.DevUtils;
* Provides a (Replay)CharSequence view on recorded stream bytes (a prefix
* buffer and overflow backing file).
*
* Treats the byte stream as 8-bit.
* Assumes the byte stream is ISO-8859-1 text, taking advantage of the fact
* that each byte in the stream corresponds to a single unicode character with
* the same numerical value as the byte.
*
* <p>Uses a wraparound rolling buffer of the last windowSize bytes read
* from disk in memory; as long as the 'random access' of a CharSequence