Tabnine Logo
FreshMapSerializer.deserialize
Code IndexAdd Tabnine to your IDE (free)

How to use
deserialize
method
in
jsettlers.logic.map.loading.newmap.FreshMapSerializer

Best Java code snippets using jsettlers.logic.map.loading.newmap.FreshMapSerializer.deserialize (Showing top 2 results out of 315)

origin: jsettlers/settlers-remake

/**
 * Read serialized file
 *
 * @param in
 *            input stream
 * @return MapData
 * @throws IOException
 */
public static MapData deserialize(InputStream in) throws IOException {
  MapDataReceiver receiver = new MapDataReceiver();
  FreshMapSerializer.deserialize(receiver, in);
  return receiver.data;
}
origin: jsettlers/settlers-remake

@Override
public IMapData getMapData() throws MapLoadException {
  if (data != null) {
    return data;
  }
  try (InputStream stream = super.getMapDataStream()) {
    data = new FreshMapData();
    FreshMapSerializer.deserialize(data, stream);
    return data;
  } catch (IOException ex) {
    throw new MapLoadException(ex);
  }
}
jsettlers.logic.map.loading.newmapFreshMapSerializerdeserialize

Javadoc

Reads the map data from the given stream and sets up the receiver by it.

Popular methods of FreshMapSerializer

  • getObject
  • serialize
    Serializes the given data to the output stream.
  • writeObject

Popular in Java

  • Reading from database using SQL prepared statement
  • getApplicationContext (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Kernel (java.awt.image)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now