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


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

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


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

示例1: TransformerException

 /**
  * Wrap an existing exception in a TransformerException.
  *
  * <p>This is used for throwing processor exceptions before
  * the processing has started.</p>
  *
  * @param message The error or warning message, or null to
  *                use the message from the embedded exception.
  * @param e Any exception
  */
 public TransformerException(String message, java.lang.Throwable e)
     : base(((message == null) || (message.length() == 0))
       ? e.toString()
       : message)
 {
     this.containedException = e;
     this.locator            = null;
 }
开发者ID:sailesh341,项目名称:JavApi,代码行数:18,代码来源:TransformerException.cs

示例2: add

 /**
  * Add a permission object to the permission collection.
  *
  * @param permission
  *            the FilePermission object to add to the collection.
  * @throws IllegalArgumentException
  *             if {@code permission} is not an instance of
  *             {@code FilePermission}.
  * @throws IllegalStateException
  *             if this collection is read-only.
  * @see java.security.PermissionCollection#add(java.security.Permission)
  */
 public override void add(java.security.Permission permission)
 {
     if (isReadOnly()) {
     throw new java.lang.IllegalStateException();
     }
     if (permission is FilePermission) {
     permissions.addElement(permission);
     } else {
     throw new java.lang.IllegalArgumentException(permission.toString());
     }
 }
开发者ID:sailesh341,项目名称:JavApi,代码行数:23,代码来源:FilePermissionCollection.cs

示例3: exec

 public static Process exec(String[] cmdArray, String[] env, java.io.File dir)
 {
     Process p = new Process();
     p.StartInfo.WorkingDirectory = (null!=dir) ? dir.toString () : SystemJ.getProperty("user.dir");
     p.StartInfo.FileName = cmdArray[0];
     for (int i = 0; i < env.Length; i++) {
         String [] keyValue = env [i].Split ('=');
         p.StartInfo.EnvironmentVariables.Add (keyValue[0],keyValue[1]);
     }
     for (int i = 1; i < cmdArray.Length; i++) {
         p.StartInfo.Arguments.Insert(i - 1, cmdArray[i]);
     }
     p.StartInfo.UseShellExecute = true;
     p.Start();
     return p;
 }
开发者ID:gadfly,项目名称:nofs,代码行数:16,代码来源:java.lang.Runtime.cs

示例4: TransformException

 /**
  * Constructs a new <code>TransformException</code> with the specified
  * cause and a detail message of
  * <code>(cause==null ? null : cause.toString())</code>
  * (which typically contains the class and detail message of
  * <code>cause</code>).
  *
  * @param cause the cause (A <tt>null</tt> value is permitted, and
  *        indicates that the cause is nonexistent or unknown.)
  */
 public TransformException(java.lang.Throwable cause)
     : base(cause==null ? null : cause.toString())
 {
     this.cause = cause;
 }
开发者ID:sailesh341,项目名称:JavApi,代码行数:15,代码来源:TransformException.cs

示例5: NoSuchMechanismException

 /**
  * Constructs a new <code>NoSuchMechanismException</code> with the
  * specified cause and a detail message of
  * <code>(cause==null ? null : cause.toString())</code> (which typically
  * contains the class and detail message of <code>cause</code>).
  *
  * @param cause the cause (A <tt>null</tt> value is permitted, and
  *        indicates that the cause is nonexistent or unknown.)
  */
 public NoSuchMechanismException(java.lang.Throwable cause)
     : base(cause == null ? null : cause.toString())
 {
     this.cause = cause;
 }
开发者ID:sailesh341,项目名称:JavApi,代码行数:14,代码来源:NoSuchMechanismException.cs

示例6: append

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

示例7: URIReferenceException

 /**
  * Constructs a new <code>URIReferenceException</code> with the specified
  * cause and a detail message of <code>(cause==null ? null :
  * cause.toString())</code> (which typically contains the class and detail
  * message of <code>cause</code>).
  *
  * @param cause the cause (A <tt>null</tt> value is permitted, and
  *        indicates that the cause is nonexistent or unknown.)
  */
 public URIReferenceException(java.lang.Throwable cause)
     : base(cause == null ? null : cause.toString())
 {
     this.cause = cause;
 }
开发者ID:sailesh341,项目名称:JavApi,代码行数:14,代码来源:URIReferenceException.cs

示例8: FactoryConfigurationError

 /**
  * Create a new <code>FactoryConfigurationError</code> with a
  * given <code>Exception</code> base cause of the error.
  *
  * @param e The exception to be encapsulated in a
  * FactoryConfigurationError.
  */
 public FactoryConfigurationError(java.lang.Exception e)
     : base(e.toString())
 {
     this.exception = e;
 }
开发者ID:sailesh341,项目名称:JavApi,代码行数:12,代码来源:FactoryConfigurationError.cs

示例9: append

 /**
  * Appends the character sequence {@code csq} to the target. This method
  * works the same way as {@code Writer.write(csq.toString())}. If {@code
  * csq} is {@code null}, then the string "null" is written to the target
  * stream.
  *
  * @param csq
  *            the character sequence appended to the target.
  * @return this writer.
  * @throws IOException
  *             if this writer is closed or another I/O error occurs.
  */
 public virtual Writer append(java.lang.CharSequence csq)
 {
     // throws IOException {
     if (null == csq)
     {
         write(TOKEN_NULL);
     }
     else
     {
         write(csq.toString());
     }
     return this;
 }
开发者ID:gadfly,项目名称:nofs,代码行数:25,代码来源:java.io.Writer.cs

示例10: append

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

示例11: KeySelectorException

 /**
  * Constructs a new <code>KeySelectorException</code> with the specified
  * cause and a detail message of
  * <code>(cause==null ? null : cause.toString())</code>
  * (which typically contains the class and detail message of
  * <code>cause</code>).
  *
  * @param cause the cause (A <tt>null</tt> value is permitted, and
  *        indicates that the cause is nonexistent or unknown.)
  */
 public KeySelectorException(java.lang.Throwable cause)
     : base(cause == null ? null : cause.toString())
 {
     this.cause = cause;
 }
开发者ID:RealBastie,项目名称:JavApi,代码行数:15,代码来源:KeySelectorException.cs

示例12: XMLSignatureException

 /**
  * Constructs a new <code>XMLSignatureException</code> with the specified
  * cause and a detail message of
  * <code>(cause==null ? null : cause.toString())</code>
  * (which typically contains the class and detail message of
  * <code>cause</code>).
  *
  * @param cause the cause (A <tt>null</tt> value is permitted, and
  *        indicates that the cause is nonexistent or unknown.)
  */
 public XMLSignatureException(java.lang.Throwable cause)
     : base(cause==null ? null : cause.toString())
 {
     this.cause = cause;
 }
开发者ID:sailesh341,项目名称:JavApi,代码行数:15,代码来源:XMLSignatureException.cs

示例13: AnnotationFormatError

 /**
  * Constructs an instance with a cause. If the cause is not
  * {@code null}, then {@code cause.toString()} is used as the
  * error's message.
  *
  * @param cause
  *            the cause of the error or {@code null} if none.
  */
 public AnnotationFormatError(java.lang.Throwable cause)
     : base(cause == null ? null : cause.toString(), cause)
 {
 }
开发者ID:sailesh341,项目名称:JavApi,代码行数:12,代码来源:AnnotationFormatError.cs


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