Set or obtain data attributes
The length() method returns the total length
of the entire data stream. The getAutoAlignment() method
retrieves the
TRUE
or FALSE
(on
or off) state of the auto alignment feature. The setAutoAlignment() method
sets the state to TRUE
or FALSE
: public int length();
public boolean getAutoAlignment();
public void setAutoAlignment(boolean value);
Important: Setting the auto alignment feature might result in
discarded bytes from the input stream if the data is not already aligned.
JDBC applications should provide aligned data or set the auto alignment
feature to
FALSE
.