Logo Search packages:      
Sourcecode: icedtea-java7 version File versions

abstract ByteBuffer java::nio::ByteBuffer::putShort ( short  value  )  [pure virtual]

Relative put method for writing a short value  (optional operation).

Writes two bytes containing the given short value, in the current byte order, into this buffer at the current position, and then increments the position by two.

value The short value to be written
This buffer
BufferOverflowException If there are fewer than two bytes remaining in this buffer
ReadOnlyBufferException If this buffer is read-only

Implemented in java::nio::HeapByteBuffer, and java::nio::HeapByteBufferR.

Referenced by gnu::java::awt::color::ProfileHeader::getData(), java::awt::color::ICC_Profile::makeDescTag(), java::awt::color::ICC_Profile::makeIdentityClut(), java::awt::color::ICC_Profile::makeTRC(), and java::nio::HeapByteBuffer::putShort().

Generated by  Doxygen 1.6.0   Back to index