Top Description Fields Constructors Methods
org.jboss.marshalling.util

public Class ShortFieldPutter

extends FieldPutter
Class Inheritance
Imports
org.jboss.marshalling.Marshaller, java.io.IOException

A field putter for short-type fields.

Field Summary

Modifier and TypeField and Description
private short

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Kind
getKind()

Implements abstract org.jboss.marshalling.util.FieldPutter.getKind.

Get the kind of field being written.
public short
getShort()

Overrides org.jboss.marshalling.util.FieldPutter.getShort.

Get the short value of this field.
public void
setShort(final short
the short value of this field
value
)

Overrides org.jboss.marshalling.util.FieldPutter.setShort.

Set the short value of this field.
public void
write(final Marshaller
the marshaller to which to write
marshaller
)

Implements abstract org.jboss.marshalling.util.FieldPutter.write.

Write the value of this field in its proper native format.
Inherited from org.jboss.marshalling.util.FieldPutter:
getBooleangetBytegetChargetDoublegetFloatgetIntgetLonggetObjectsetBooleansetBytesetCharsetDoublesetFloatsetIntsetLongsetObject

Field Detail

valueback to summary
private short value

Constructor Detail

ShortFieldPutterback to summary
public ShortFieldPutter()

Method Detail

getKindback to summary
public Kind getKind()

Implements abstract org.jboss.marshalling.util.FieldPutter.getKind.

Doc from org.jboss.marshalling.util.FieldPutter.getKind.

Get the kind of field being written.

Returns:Kind

the kind of field

getShortback to summary
public short getShort()

Overrides org.jboss.marshalling.util.FieldPutter.getShort.

Doc from org.jboss.marshalling.util.FieldPutter.getShort.

Get the short value of this field.

Returns:short

the short value of this field

setShortback to summary
public void setShort(final short value)

Overrides org.jboss.marshalling.util.FieldPutter.setShort.

Doc from org.jboss.marshalling.util.FieldPutter.setShort.

Set the short value of this field.

Parameters
value:short

the short value of this field

writeback to summary
public void write(final Marshaller marshaller) throws IOException

Implements abstract org.jboss.marshalling.util.FieldPutter.write.

Doc from org.jboss.marshalling.util.FieldPutter.write.

Write the value of this field in its proper native format.

Parameters
marshaller:Marshaller

the marshaller to which to write

Exceptions
IOException:
if an error occurs