Codota Logo
KryoManager.getKryo
Code IndexAdd Codota to your IDE (free)

How to use
getKryo
method
in
org.chronos.common.serialization.KryoManager

Best Java code snippets using org.chronos.common.serialization.KryoManager.getKryo (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: MartinHaeusler/chronos

public static <T> T deepCopy(final T element) {
  return getKryo().deepCopy(element);
}
origin: MartinHaeusler/chronos

public static <T> T deserialize(final byte[] serialForm) {
  return getKryo().deserialize(serialForm);
}
origin: MartinHaeusler/chronos

public static byte[] serialize(final Object object) {
  return getKryo().serialize(object);
}
origin: MartinHaeusler/chronos

public static List<Object> deserializeObjectsFromFile(final File file) {
  checkArgument(file.exists(), "Precondition violation - argument 'file' must refer to an existing file!");
  checkArgument(file.isFile(),
      "Precondition violation - argument 'file' must refer to a file (not a directory)!");
  checkArgument(file.canRead(), "Precondition violation - argument 'file' must be readable!");
  try {
    return getKryo().deserializeObjectsFromFile(file);
  } catch (IOException e) {
    throw new ChronosIOException("Failed to deserialize object(s) from file!", e);
  }
}
origin: MartinHaeusler/chronos

public static void serializeObjectsToFile(final File file, final Object... objects) {
  checkNotNull(objects, "Precondition violation - argument 'objects' must not be NULL!");
  checkNotNull(file, "Precondition violation - argument 'file' must not be NULL!");
  checkArgument(file.exists(), "Precondition violation - argument 'file' must refer to an existing file!");
  checkArgument(file.isFile(),
      "Precondition violation - argument 'file' must refer to a file (not a directory)!");
  checkArgument(file.canWrite(), "Precondition violation - argument 'file' must be writable!");
  try {
    getKryo().serializeToFile(file, objects);
  } catch (IOException e) {
    throw new ChronosIOException("Failed to serialize object to file!", e);
  }
}
origin: MartinHaeusler/chronos

public static <T> T deserializeObjectFromFile(final File file) {
  checkNotNull(file, "Precondition violation - argument 'file' must not be NULL!");
  checkArgument(file.exists(), "Precondition violation - argument 'file' must refer to an existing file!");
  checkArgument(file.isFile(),
      "Precondition violation - argument 'file' must refer to a file (not a directory)!");
  checkArgument(file.canRead(), "Precondition violation - argument 'file' must be readable!");
  try {
    return getKryo().deserializeObjectFromFile(file);
  } catch (IOException e) {
    throw new ChronosIOException("Failed to deserialize object from file!", e);
  }
}
org.chronos.common.serializationKryoManagergetKryo

Popular methods of KryoManager

  • deserialize
  • serialize
  • deepCopy
  • deserializeObjectsFromFile
  • serializeObjectsToFile
  • deserializeObjectFromFile
  • destroyKryo
  • produceKryoWrapper

Popular in Java

  • Making http requests using okhttp
  • getExternalFilesDir (Context)
  • orElseThrow (Optional)
  • startActivity (Activity)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Notification (javax.management)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now