当前位置: 首页>>代码示例>>C#>>正文


C# biz.ritter.javapi.subSequence方法代码示例

本文整理汇总了C#中biz.ritter.javapi.subSequence方法的典型用法代码示例。如果您正苦于以下问题:C# biz.ritter.javapi.subSequence方法的具体用法?C# biz.ritter.javapi.subSequence怎么用?C# biz.ritter.javapi.subSequence使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在biz.ritter.javapi的用法示例。


在下文中一共展示了biz.ritter.javapi.subSequence方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: append

 /**
  * Appends a subsequence of the character sequence {@code csq} to the target
  * stream. This method works the same way as {@code
  * PrintStream.print(csq.subsequence(start, end).toString())}. If {@code
  * csq} is {@code null}, then the specified subsequence of the string "null"
  * will be written to the target stream.
  *
  * @param csq
  *            the character sequence appended to the target stream.
  * @param start
  *            the index of the first char in the character sequence appended
  *            to the target stream.
  * @param end
  *            the index of the character following the last character of the
  *            subsequence appended to the target stream.
  * @return this stream.
  * @throws IndexOutOfBoundsException
  *             if {@code start > end}, {@code start < 0}, {@code end < 0} or
  *             either {@code start} or {@code end} are greater or equal than
  *             the length of {@code csq}.
  */
 public PrintStream append(java.lang.CharSequence csq, int start, int end)
 {
     if (null == csq)
     {
         print(TOKEN_NULL.substring(start, end));
     }
     else
     {
         print(csq.subSequence(start, end).toString());
     }
     return this;
 }
开发者ID:sailesh341,项目名称:JavApi,代码行数:33,代码来源:PrintStream.cs

示例2: append

 /**
  * Appends a subsequence of the character sequence {@code csq} to the
  * target. This method works the same way as {@code
  * Writer.writer(csq.subsequence(start, end).toString())}. If {@code
  * csq} is {@code null}, then the specified subsequence of the string "null"
  * will be written to the target.
  *
  * @param csq
  *            the character sequence appended to the target.
  * @param start
  *            the index of the first char in the character sequence appended
  *            to the target.
  * @param end
  *            the index of the character following the last character of the
  *            subsequence appended to the target.
  * @return this writer.
  * @throws IOException
  *             if this writer is closed or another I/O error occurs.
  * @throws IndexOutOfBoundsException
  *             if {@code start > end}, {@code start < 0}, {@code end < 0} or
  *             either {@code start} or {@code end} are greater or equal than
  *             the length of {@code csq}.
  */
 public virtual Writer append(java.lang.CharSequence csq, int start, int end)
 {
     //throws IOException {
     if (null == csq)
     {
         write(TOKEN_NULL.substring(start, end));
     }
     else
     {
         write(csq.subSequence(start, end).toString());
     }
     return this;
 }
开发者ID:gadfly,项目名称:nofs,代码行数:36,代码来源:java.io.Writer.cs


注:本文中的biz.ritter.javapi.subSequence方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。