Mercurial > hg4j
diff src/org/tmatesoft/hg/internal/Filter.java @ 115:c0cc2535462c
Introduced channels to pipeline (and easily filter) data streams
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 03 Feb 2011 23:32:08 +0100 |
parents | 46291ec605a0 |
children | 7567f4a42fe5 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/Filter.java Thu Feb 03 22:13:55 2011 +0100 +++ b/src/org/tmatesoft/hg/internal/Filter.java Thu Feb 03 23:32:08 2011 +0100 @@ -28,6 +28,8 @@ */ public interface Filter { + // returns a buffer ready to be read. may return original buffer. + // original buffer may not be fully consumed, #compact() might be operation to perform ByteBuffer filter(ByteBuffer src); interface Factory {