gpt4 book ai didi

de.odysseus.staxon.json.stream.impl.Yylex类的使用及代码示例

转载 作者:知者 更新时间:2024-03-18 10:09:31 26 4
gpt4 key购买 nike

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

Yylex介绍

暂无

代码示例

代码示例来源:origin: org.wso2.staxon/staxon

@Override
public void close() throws java.io.IOException { yyclose(); }
@Override

代码示例来源:origin: org.wso2.staxon/staxon

/**
 * Pushes the specified amount of characters back into the input stream.
 *
 * They will be read again by then next call of the scanning method
 *
 * @param number  the number of characters to be read again.
 *                This number must not be greater than yylength()!
 */
private void yypushback(int number)  {
 if ( number > yylength() )
  zzScanError(ZZ_PUSHBACK_2BIG);
 zzMarkedPos -= number;
}

代码示例来源:origin: beckchr/staxon

@Override
public Symbol nextSymbol() throws java.io.IOException { return yylex(); }
@Override

代码示例来源:origin: beckchr/staxon

zzPeek = false;
else {
 boolean eof = zzRefill();
 zzEndReadL = zzEndRead;
 zzMarkedPosL = zzMarkedPos;
  boolean eof = zzRefill();
 { throw new java.io.IOException("Illegal character: <" + yytext() + ">");
 { builder.append(Character.toChars(Integer.parseInt(yytext().substring(2), 16)));
 { text = builder.toString(); yybegin(YYINITIAL); return Symbol.STRING;
 { builder.setLength(0); yybegin(STRING);
 { builder.append(yytext());
 { text = yytext(); return Symbol.NUMBER;
  zzScanError(ZZ_NO_MATCH);

代码示例来源:origin: beckchr/staxon

@Override
public JsonStreamSource createJsonStreamSource(Reader reader) {
  return new JsonStreamSourceImpl(new Yylex(reader), false);
}

代码示例来源:origin: org.wso2.staxon/staxon

private static int [] zzUnpackAttribute() {
 int [] result = new int[48];
 int offset = 0;
 offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result);
 return result;
}

代码示例来源:origin: beckchr/staxon

private static int [] zzUnpackAction() {
 int [] result = new int[48];
 int offset = 0;
 offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result);
 return result;
}

代码示例来源:origin: org.wso2.staxon/staxon

zzPeek = false;
else {
 boolean eof = zzRefill();
 zzEndReadL = zzEndRead;
 zzMarkedPosL = zzMarkedPos;
  boolean eof = zzRefill();
 { throw new java.io.IOException("Illegal character: <" + yytext() + ">");
 { builder.append(Character.toChars(Integer.parseInt(yytext().substring(2), 16)));
 { text = builder.toString(); yybegin(YYINITIAL); return Symbol.STRING;
 { builder.setLength(0); yybegin(STRING);
 { builder.append(yytext());
 { text = yytext(); return Symbol.NUMBER;
  zzScanError(ZZ_NO_MATCH);

代码示例来源:origin: org.wso2.staxon/staxon

@Override
public JsonStreamSource createJsonStreamSource(Reader reader) {
  return new JsonStreamSourceImpl(new Yylex(reader), false);
}

代码示例来源:origin: beckchr/staxon

private static int [] zzUnpackAttribute() {
 int [] result = new int[48];
 int offset = 0;
 offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result);
 return result;
}

代码示例来源:origin: org.wso2.staxon/staxon

private static int [] zzUnpackAction() {
 int [] result = new int[48];
 int offset = 0;
 offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result);
 return result;
}

代码示例来源:origin: beckchr/staxon

/**
 * Pushes the specified amount of characters back into the input stream.
 *
 * They will be read again by then next call of the scanning method
 *
 * @param number  the number of characters to be read again.
 *                This number must not be greater than yylength()!
 */
private void yypushback(int number)  {
 if ( number > yylength() )
  zzScanError(ZZ_PUSHBACK_2BIG);
 zzMarkedPos -= number;
}

代码示例来源:origin: org.wso2.staxon/staxon

@Override
public JsonStreamSource createJsonStreamSource(Reader reader, Constants.SCANNER scanner) {
  if (scanner == Constants.SCANNER.SCANNER_1) {
    return new JsonStreamSourceImpl(new JsonScanner(reader), false);
  } else if (scanner == Constants.SCANNER.SCANNER_2) {
    return new JsonStreamSourceImpl(new JsonScanner2(reader), false);
  }
  return new JsonStreamSourceImpl(new Yylex(reader), false);
}

代码示例来源:origin: beckchr/staxon

@Override
public void close() throws java.io.IOException { yyclose(); }
@Override

代码示例来源:origin: org.wso2.staxon/staxon

@Override
public Symbol nextSymbol() throws java.io.IOException { return yylex(); }
@Override

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