public final class SingleItem extends Argument
Argument implementation for items without a value.| Constructor and Description | 
|---|
| SingleItem(int item) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | copyTo(ParameterBuffer buffer,
      Encoding encoding)Copies this argument into the supplied buffer, uses the supplied  Encodingfor string arguments. | 
| boolean | equals(java.lang.Object other) | 
| int | getLength() | 
| void | writeTo(java.io.OutputStream outputStream)Writes the arguments to the supplied  OutputStreamin the XDR format of the type. | 
getType, getValueAsInt, getValueAsLong, getValueAsString, hashCodepublic void writeTo(java.io.OutputStream outputStream)
             throws java.io.IOException
ArgumentOutputStream in the XDR format of the type.public int getLength()
getLength in class ArgumentArgument.writeTo(java.io.OutputStream).
 This includes the item, the value and other items contributing to the total length (eg the length of the value).public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic void copyTo(ParameterBuffer buffer, Encoding encoding)
ParameterEncoding for string arguments.
 
 An instance of Parameter should know how to copy itself into another buffer (eg an instance
 of StringArgument would know to call
 ParameterBuffer.addArgument(int, String, Encoding)).
 
The parameter does not need to check if it is the right type of destination buffer (if someone tries to add a TPB argument to a DPB he is free to try that).
buffer - ParameterBuffer instanceencoding - Encoding to use for string properties. A value of null can be used to signal that the
         original encoding should be used.Copyright © 2001-2022 Jaybird (Firebird JDBC/JCA) team. All rights reserved.