public void encodePrimitive(OutputContext ctx, Object holder, Property property) throws IllegalAccessException, IOException, InvocationTargetException { shortCodec.encodePrimitive(ctx, property.getShort(holder)); } public void decodePrimitive(InputContext ctx, Object holder, Property property) throws IllegalAccessException, IOException, InvocationTargetException {
public void encodePrimitive(OutputContext ctx, Object holder, Property property) throws IllegalAccessException, IOException, InvocationTargetException { shortCodec.encodePrimitive(ctx, property.getShort(holder)); } public void decodePrimitive(InputContext ctx, Object holder, Property property) throws IllegalAccessException, IOException, InvocationTargetException {
@Override public short getShort(Object holder) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException { if (ObservableValue.class.isAssignableFrom(property.getType())) throw new UnsupportedOperationException("JavaFX doesn't support short properties"); return property.getShort(holder); }
public void encodePrimitive(OutputContext ctx, Object holder, Property property) throws IllegalAccessException, IOException, InvocationTargetException { shortCodec.encodePrimitive(ctx, property.getShort(holder)); } public void decodePrimitive(InputContext ctx, Object holder, Property property) throws IllegalAccessException, IOException, InvocationTargetException {
public void encodePrimitive(OutputContext ctx, Object holder, Property property) throws IllegalAccessException, IOException, InvocationTargetException { shortCodec.encodePrimitive(ctx, property.getShort(holder)); } public void decodePrimitive(InputContext ctx, Object holder, Property property) throws IllegalAccessException, IOException, InvocationTargetException {