PageRenderTime 12ms CodeModel.GetById 10ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/branches/branch-3x/src/org/getopt/luke/decoders/StringDecoder.java

http://luke.googlecode.com/
Java | 18 lines | 14 code | 4 blank | 0 comment | 1 complexity | f94eee935469f71971b5f30d1de96f09 MD5 | raw file
 1package org.getopt.luke.decoders;
 2
 3public class StringDecoder implements Decoder {
 4
 5  @Override
 6  public String decodeTerm(String fieldName, Object value) {
 7    return value != null ? value.toString() : "(null)";
 8  }
 9  
10  @Override
11  public String decodeStored(String fieldName, Object value) {
12    return decodeTerm(fieldName, value);
13  }
14
15  public String toString() {
16    return "string utf8";
17  }
18}