01: /*
02: * @(#)LineHandler.java 1.2 04/12/06
03: *
04: * Copyright (c) 2001-2004 Sun Microsystems, Inc. All Rights Reserved.
05: *
06: * See the file "LICENSE.txt" for information on usage and redistribution
07: * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
08: */
09: package org.pnuts.text;
10:
11: /**
12: * An abstract interface for LineReader's callback
13: */
14: public interface LineHandler {
15:
16: /**
17: * Processes the current line.
18: *
19: * @param cb the char buffer that contains the current line
20: * @param offset the offset of the buffer
21: * @param length the length of the current line
22: */
23: void process(char[] cb, int offset, int length);
24: }
|