org.eclipse.rdf4j.rio.RDFHandler.handleComment()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(78)

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

RDFHandler.handleComment介绍

[英]Handles a comment.
[中]处理评论。

代码示例

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client

public void handleComment(String comment)
    throws RDFHandlerException
  {
    for (RDFHandler rdfHandler : rdfHandlers) {
      rdfHandler.handleComment(comment);
    }
  }
}

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-rio-api

public void handleComment(String comment)
    throws RDFHandlerException
  {
    for (RDFHandler rdfHandler : rdfHandlers) {
      rdfHandler.handleComment(comment);
    }
  }
}

代码示例来源:origin: franzinc/agraph-java-client

@Override
  public void handleComment(String comment)
      throws RDFHandlerException {
    handler.handleComment(comment);
  }
};

代码示例来源:origin: eclipse/rdf4j

@Override
  public void handleComment(String comment)
    throws RDFHandlerException
  {
    for (RDFHandler rdfHandler : rdfHandlers) {
      rdfHandler.handleComment(comment);
    }
  }
}

代码示例来源:origin: joshsh/sesametools

public void handleComment(final String comment) throws RDFHandlerException {
    baseHandler.handleComment(comment);
  }
}

代码示例来源:origin: joshsh/sesametools

public void handleComment(final String comment) throws RDFHandlerException {
    baseHandler.handleComment(comment);
  }
}

代码示例来源:origin: net.sourceforge.owlapi/owlapi-rio

private void writeComment(final String comment) {
  try {
    writer.handleComment(comment);
  } catch (RDFHandlerException e) {
    throw new OWLRuntimeException(e);
  }
}

代码示例来源:origin: owlcs/owlapi

private void writeComment(final String comment) {
  try {
    writer.handleComment(comment);
  } catch (RDFHandlerException e) {
    throw new OWLRuntimeException(e);
  }
}

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-rio-binary

private void readComment()
  throws IOException, RDFHandlerException
{
  String comment = readString();
  if (rdfHandler != null) {
    rdfHandler.handleComment(comment);
  }
}

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client

private void readComment()
  throws IOException, RDFHandlerException
{
  String comment = readString();
  if (rdfHandler != null) {
    rdfHandler.handleComment(comment);
  }
}

代码示例来源:origin: eclipse/rdf4j

private void readComment()
  throws IOException, RDFHandlerException
{
  String comment = readString();
  if (rdfHandler != null) {
    rdfHandler.handleComment(comment);
  }
}

代码示例来源:origin: eclipse/rdf4j

/**
 * Consumes characters from reader until the first EOL has been read. This line of text is then passed to
 * the {@link #rdfHandler} as a comment.
 */
protected void processComment() throws IOException, RDFHandlerException {
  StringBuilder comment = getBuilder();
  int c = readCodePoint();
  while (c != -1 && c != 0xD && c != 0xA) {
    appendCodepoint(comment, c);
    c = readCodePoint();
  }
  if (c == 0xA) {
    lineNumber++;
  }
  // c is equal to -1, \r or \n.
  // In case c is equal to \r, we should also read a following \n.
  if (c == 0xD) {
    c = readCodePoint();
    lineNumber++;
    if (c != 0xA) {
      unread(c);
    }
  }
  if (rdfHandler != null) {
    rdfHandler.handleComment(comment.toString());
  }
  reportLocation();
}

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client

/**
 * Consumes characters from reader until the first EOL has been read. This line of text is then passed to
 * the {@link #rdfHandler} as a comment.
 */
protected void processComment() throws IOException, RDFHandlerException {
  StringBuilder comment = getBuilder();
  int c = readCodePoint();
  while (c != -1 && c != 0xD && c != 0xA) {
    appendCodepoint(comment, c);
    c = readCodePoint();
  }
  if (c == 0xA) {
    lineNumber++;
  }
  // c is equal to -1, \r or \n.
  // In case c is equal to \r, we should also read a following \n.
  if (c == 0xD) {
    c = readCodePoint();
    lineNumber++;
    if (c != 0xA) {
      unread(c);
    }
  }
  if (rdfHandler != null) {
    rdfHandler.handleComment(comment.toString());
  }
  reportLocation();
}

相关文章