From 285e2dbd2ce4e2ac259b3538529b6c3c86a2c023 Mon Sep 17 00:00:00 2001 From: mdb Date: Wed, 29 Jan 2003 10:34:06 +0000 Subject: [PATCH] Added support for byte fields. git-svn-id: https://samskivert.googlecode.com/svn/trunk@1040 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- .../src/java/com/samskivert/util/ValueMarshaller.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/projects/samskivert/src/java/com/samskivert/util/ValueMarshaller.java b/projects/samskivert/src/java/com/samskivert/util/ValueMarshaller.java index 9444b8cf..ee100fc7 100644 --- a/projects/samskivert/src/java/com/samskivert/util/ValueMarshaller.java +++ b/projects/samskivert/src/java/com/samskivert/util/ValueMarshaller.java @@ -1,5 +1,5 @@ // -// $Id: ValueMarshaller.java,v 1.6 2002/09/24 00:09:37 mdb Exp $ +// $Id: ValueMarshaller.java,v 1.7 2003/01/29 10:34:06 mdb Exp $ package com.samskivert.util; @@ -56,6 +56,13 @@ public class ValueMarshaller } }); + // and bytes + _parsers.put(Byte.TYPE, new Parser() { + public Object parse (String source) throws Exception { + return Byte.valueOf(source); + } + }); + // and ints _parsers.put(Integer.TYPE, new Parser() { public Object parse (String source) throws Exception {