org.drizzle.jdbc.internal.common.query.parameters
Class ByteParameter

java.lang.Object
  extended by org.drizzle.jdbc.internal.common.query.parameters.ByteParameter
All Implemented Interfaces:
ParameterHolder

public class ByteParameter
extends java.lang.Object
implements ParameterHolder

. User: marcuse Date: Feb 27, 2009 Time: 9:56:17 PM


Constructor Summary
ByteParameter(byte[] x)
           
 
Method Summary
 long length()
           
 int writeTo(java.io.OutputStream os, int offset, int maxWriteSize)
          Write at most maxWriteSize, return the amont actually written
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteParameter

public ByteParameter(byte[] x)
Method Detail

writeTo

public int writeTo(java.io.OutputStream os,
                   int offset,
                   int maxWriteSize)
            throws java.io.IOException
Description copied from interface: ParameterHolder
Write at most maxWriteSize, return the amont actually written

Specified by:
writeTo in interface ParameterHolder
Parameters:
os - the stream to write to
offset - where to start writing
maxWriteSize - max number of bytes to write
Returns:
the number of bytes written (either maxWriteSize or the length of the parameter)
Throws:
java.io.IOException - when everything goes wrong

length

public long length()
Specified by:
length in interface ParameterHolder


Copyright © 2012. All Rights Reserved.