/** * Deserializes a {@link Model} by reading bytes from the specified input * stream. It assumes the output is not compressed. * * @param in * the input stream to read from. * * @return the {@link Model} read from the input stream. */ public static Model deserializeModel(InputStream in) { return deserializeModel(in, false); }
/** * {@inheritDoc} */ @Override protected void internalReadObject(ObjectInputStream in) throws IOException, ClassNotFoundException { this.object = SparqlResultSerializer.deserializeModel( in, EventCloudProperties.COMPRESSION.getValue()); }