@@ -0,0 +1,827 @@
+// Copyright (c) 2006  Dustin Sallings %3Cdustin@spy.net%3E%0A%0Apackage net.spy.memcached.transcoders;%0A%0Aimport java.io.ObjectStreamClass;%0A%0Aimport net.spy.SpyObject;%0Aimport net.spy.util.CloseUtil;%0A%0Aimport net.spy.memcached.CachedData;%0A%0A/**%0A * Transcoder that serializes and unserializes longs.%0A */%0Apublic final class LongTranscoder extends SpyObject%0A    implements Transcoder%3CLong%3E %7B%0A%0A    private static final int flags = TranscoderUtils.hashForFlags(ObjectStreamClass.lookup(Long.class).getSerialVersionUID());%0A%0A    public CachedData encode(java.lang.Long l) %7B%0A        return new CachedData(flags, TranscoderUtils.encodeLong(l));%0A    %7D%0A%0A    public Long decode(CachedData d) %7B%0A        if (flags == d.getFlags()) %7B%0A            return TranscoderUtils.decodeLong(d.getData());%0A        %7D else %7B%0A            return null;%0A        %7D%0A    %7D%0A%0A%7D%0A

Add a new transcoder for Long's.