Package net.sf.hajdbc.codec

Examples of net.sf.hajdbc.codec.Codec


    String clusterId = args[0];
    String value = args[1];
   
    try
    {
      Codec codec = new HexCodecFactory().createCodec(clusterId);

      System.out.println(codec.encode(value));
    }
    catch (SQLException e)
    {
      e.printStackTrace(System.err);
    }
View Full Code Here


    String clusterId = args[0];
    String value = args[1];
   
    try
    {
      Codec codec = new CipherCodecFactory().createCodec(clusterId);

      System.out.println(codec.encode(value));
    }
    catch (SQLException e)
    {
      e.printStackTrace(System.err);
    }
View Full Code Here

  }
 
  @Test
  public void test() throws SQLException
  {
    Codec codec = new CipherCodecFactory().createCodec("cluster");
   
    Assert.assertTrue(codec instanceof CipherCodec);
    Assert.assertEquals(this.key, ((CipherCodec) codec).getKey());
  }
View Full Code Here

    String clusterId = args[0];
    String value = args[1];
   
    try
    {
      Codec codec = new Base64CodecFactory().createCodec(clusterId);

      System.out.println(codec.encode(value));
    }
    catch (SQLException e)
    {
      e.printStackTrace(System.err);
    }
View Full Code Here

TOP

Related Classes of net.sf.hajdbc.codec.Codec

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.