gpt4 book ai didi

org.jooq.tools.json.Yylex.yyreset()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 03:29:31 24 4
gpt4 key购买 nike

本文整理了Java中org.jooq.tools.json.Yylex.yyreset()方法的一些代码示例,展示了Yylex.yyreset()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Yylex.yyreset()方法的具体详情如下:
包路径:org.jooq.tools.json.Yylex
类名称:Yylex
方法名:yyreset

Yylex.yyreset介绍

[英]Resets the scanner to read from a new input stream. Does not close the old reader. All internal variables are reset, the old input stream cannot be reused (internal buffer is discarded and lost). Lexical state is set to ZZ_INITIAL.
[中]将扫描仪重置为从新的输入流中读取。不会关闭旧的阅读器。所有内部变量都被重置,旧的输入流无法重用(内部缓冲区被丢弃并丢失)。词法状态设置为ZZ_首字母。

代码示例

代码示例来源:origin: org.jooq/jooq

/**
 * Reset the parser to the initial state with a new character reader.
 *
 * @param in - The new character reader.
 * @throws IOException
 * @throws ParseException
 */
public void reset(Reader in){
  lexer.yyreset(in);
  reset();
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics

/**
 * Reset the parser to the initial state with a new character reader.
 *
 * @param in - The new character reader.
 * @throws IOException
 * @throws ParseException
 */
public void reset(Reader in){
  lexer.yyreset(in);
  reset();
}

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com