public class MultipleCharMatch<ParentStream extends ReaderStream> extends Object implements ReaderMatch<MultipleCharMatch<ParentStream>,ParentStream,char[]>
| 构造器和说明 |
|---|
MultipleCharMatch(ParentStream parentStream,
int count) |
| 限定符和类型 | 方法和说明 |
|---|---|
ParentStream |
back()
回滚
|
ParentStream |
done()
字符读取流
|
Optional<char[]> |
match()
匹配
|
ParentStream |
stop()
中断
|
ReaderStream<MultipleCharMatch<ParentStream>> |
then() |
MultipleCharMatch<ParentStream> |
then(RunnableWithThrowable<IOException> runnable) |
MultipleCharMatch<ParentStream> |
then(Supplier<IOException> exceptionSupplier) |
MultipleCharMatch<ParentStream> |
then(SupplierWithThrowable<Optional<Object>,IOException> runnable) |
String |
toString() |
MultipleCharMatch<ParentStream> |
when(char... characters)
当字符一致时
|
MultipleCharMatch<ParentStream> |
when(Predicate<char[]> predicate)
当符合条件时
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitalwaysReturnNotPresent, alwaysReturnNotPresentRunable, alwaysReturnPresent, alwaysReturnPresentRunablepublic MultipleCharMatch(ParentStream parentStream, int count)
public MultipleCharMatch<ParentStream> when(Predicate<char[]> predicate)
predicate - 条件public MultipleCharMatch<ParentStream> when(char... characters)
characters - 字符public MultipleCharMatch<ParentStream> then(Supplier<IOException> exceptionSupplier)
public MultipleCharMatch<ParentStream> then(SupplierWithThrowable<Optional<Object>,IOException> runnable)
public MultipleCharMatch<ParentStream> then(RunnableWithThrowable<IOException> runnable)
public ReaderStream<MultipleCharMatch<ParentStream>> then()
public ParentStream done()
ReaderMatchdone 在接口中 ReaderMatch<MultipleCharMatch<ParentStream extends ReaderStream>,ParentStream extends ReaderStream,char[]>public ParentStream stop()
public ParentStream back()
public Optional<char[]> match() throws IOException
ReaderMatchmatch 在接口中 ReaderMatch<MultipleCharMatch<ParentStream extends ReaderStream>,ParentStream extends ReaderStream,char[]>IOExceptionCopyright © 2021. All rights reserved.