Class Blob

java.lang.Object
ch.nolix.system.database.blob.Blob
All Implemented Interfaces:
IBlob

public final class Blob extends Object implements IBlob
Author:
Silvan Wyss
  • Method Details

    • forBytes

      public static Blob forBytes(byte[] bytes)
      Parameters:
      bytes -
      Returns:
      a new Blob with the given bytes
      Throws:
      RuntimeException - if the given bytes is null
    • fromString

      public static Blob fromString(String string)
      Parameters:
      string -
      Returns:
      a new Blob from the given string
      Throws:
      RuntimeException - if the given string is null
    • getSizeInBytes

      public int getSizeInBytes()
      Specified by:
      getSizeInBytes in interface IBlob
    • getStoredBytes

      public byte[] getStoredBytes()
      Specified by:
      getStoredBytes in interface IBlob
    • toString

      public String toString()
      Overrides:
      toString in class Object