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


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

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


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

示例1: read

 // throws IOException
 /**
  * Reads characters and puts them into the {@code target} character buffer.
  *
  * @param target
  *            the destination character buffer.
  * @return the number of characters put into {@code target} or -1 if the end
  *         of this reader has been reached before a character has been read.
  * @throws IOException
  *             if any I/O error occurs while reading from this reader.
  * @throws NullPointerException
  *             if {@code target} is {@code null}.
  * @throws ReadOnlyBufferException
  *             if {@code target} is read-only.
  */
 public virtual int read(java.nio.CharBuffer target)
 {
     if (null == target) {
         throw new java.lang.NullPointerException();
     }
     int length = target.length();
     char[] buf = new char[length];
     length = java.lang.Math.min(length, read(buf));
     if (length > 0) {
         target.put(buf, 0, length);
     }
     return length;
 }
开发者ID:gadfly,项目名称:nofs,代码行数:28,代码来源:java.io.Reader.cs

示例2: append

 /**
  * Appends the character sequence {@code csq} to the target. This
  * method works the same way as {@code PrintWriter.print(csq.toString())}.
  * If {@code csq} is {@code null}, then the string "null" is written
  * to the target.
  *
  * @param csq
  *            the character sequence appended to the target.
  * @return this writer.
  */
 public new PrintWriter append(java.lang.CharSequence csq)
 {
     if (null == csq) {
         append(new java.lang.StringJ(TOKEN_NULL), 0, TOKEN_NULL.length());
     } else {
         append(csq, 0, csq.length());
     }
     return this;
 }
开发者ID:sailesh341,项目名称:JavApi,代码行数:19,代码来源:PrintWriter.cs

示例3: CharSequenceAdapter

 internal CharSequenceAdapter(java.lang.CharSequence chseq)
     : base(chseq.length())
 {
     sequence = chseq;
 }
开发者ID:sailesh341,项目名称:JavApi,代码行数:5,代码来源:CharSequenceAdapter.cs


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