Code example for Field

Methods: get, getDeclaringClass, getName

0
 
	@Override 
	public byte[] getBytes(Field f, Object o) {
		Throwable thing = null;
		try { 
			return (byte[]) f.get(o);
		} catch (Throwable ball) {
			thing = ball;
		} 
		throw new RuntimeException("Unable to transform " + f.getDeclaringClass() + "." + f.getName() + " in to a " + byte[].class.getCanonicalName(), thing);
	} 
 
	@Override 
	public byte[] getObject(byte[] bytes) {
		return bytes;
	} 
 
	@Override 
	public void setBytes(Field f, Object o, byte[] bytes) {
		Throwable thing = null;
		try {