litesoft
@ 947
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
// This Source Code is in the Public Domain per: http://unlicense.org package org.litesoft.codec; import org.litesoft.commonfoundation.charstreams.*; import org.litesoft.commonfoundation.annotations.*; /** * Convert String value to/from a self-terminating string representation */ public class StringTypedTerminatingCodec extends AbstractTypedTerminatingCodec<String> { public static final StringTypedTerminatingCodec INSTANCE = new StringTypedTerminatingCodec(); @Override protected @NotNull void encodeNonNull( CharSink pCharSink, String pValue ) { NonNullStringTerminatingCodec.INSTANCE.encode( pCharSink, pValue ); } @Override protected @NotNull String decodeNonNull( CharSource pCharSource ) { return NonNullStringTerminatingCodec.INSTANCE.decode( pCharSource ); } } |
Commits for litesoft/trunk/Java/core/Anywhere/src/org/litesoft/codec/StringTypedTerminatingCodec.java
Revision | Author | Commited | Message |
---|---|---|---|
947 Diff | GeorgeS | Fri 06 Jun, 2014 23:36:56 +0000 | Correct Spelling of package! |
942 Diff | GeorgeS | Mon 02 Jun, 2014 23:41:46 +0000 | Extracting commonfoundation |
939 Diff | GeorgeS | Mon 02 Jun, 2014 21:30:31 +0000 | Extracting commonfoundation |
853 Diff | GeorgeS | Sun 04 Nov, 2012 15:18:21 +0000 | |
831 Diff | GeorgeS | Fri 31 Aug, 2012 22:39:56 +0000 | |
779 Diff | GeorgeS | Mon 16 Jul, 2012 04:34:33 +0000 | |
772 Diff | GeorgeS | Sun 15 Jul, 2012 16:55:51 +0000 | ! |
768 Diff | GeorgeS | Sat 14 Jul, 2012 22:48:34 +0000 | ! |
767 Diff | GeorgeS | Sat 14 Jul, 2012 18:19:39 +0000 | |
766 | GeorgeS | Sat 14 Jul, 2012 16:38:04 +0000 | ! |