Package com.impossibl.postgres.types.PrimitiveType

Examples of com.impossibl.postgres.types.PrimitiveType.String


      }

      buffer.readBytes(bytes);
      buffer.skipBytes(length - bytes.length);

      return new String(bytes, context.getCharset());
    }
View Full Code Here


      if (val instanceof String) {
        buffer.append((String)val);
      }
      else if (val.getClass() == byte[].class) {
        buffer.append(new String((byte[]) val, context.getCharset()));
      }
      else {
        throw new IOException(val.getClass() + " cannot be encoded as a String");
      }
    }
View Full Code Here

      }

      byte[] bytes = new byte[length];
      buffer.readBytes(bytes);

      return new String(bytes, context.getCharset());
    }
View Full Code Here

TOP

Related Classes of com.impossibl.postgres.types.PrimitiveType.String

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.