| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jmatchparser.util.split.SplitRule
public abstract class SplitRule
A rule where to split a SplitOutputStream.
| Constructor Summary | |
|---|---|
SplitRule()
 | 
|
| Method Summary | |
|---|---|
 int | 
findSplitPos(byte data)
Check the given byte whether the output stream has to be split after it.  | 
abstract  int | 
findSplitPos(byte[] data,
             int off,
             int len)
Check the given bytes whether the output stream has to be split in between or after the given bytes.  | 
 void | 
update(byte data)
Update the internal state of this split rule after one byte has been output.  | 
abstract  void | 
update(byte[] data,
       int off,
       int len)
Update the internal state of this split rule after some bytes have been output.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public SplitRule()
| Method Detail | 
|---|
public abstract void update(byte[] data,
                            int off,
                            int len)
data - bytes that have been outputoff - start offsetlen - length
public abstract int findSplitPos(byte[] data,
                                 int off,
                                 int len)
data - bytes that should be outputoff - start offsetlen - length
public void update(byte data)
update(byte[], int, int) with a 1-byte byte array.
data - byte that has been outputpublic int findSplitPos(byte data)
findSplitPos(byte[], int, int) with a 1-byte byte array.
data - byte that should be output
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||