using System;
using System.IO;
namespace MediaBrowser.Model.Serialization
{
public interface IXmlSerializer
{
///
/// Deserializes from stream.
///
/// The type.
/// The stream.
/// System.Object.
object DeserializeFromStream(Type type, Stream stream);
///
/// Serializes to stream.
///
/// The obj.
/// The stream.
void SerializeToStream(object obj, Stream stream);
///
/// Serializes to file.
///
/// The obj.
/// The file.
void SerializeToFile(object obj, string file);
///
/// Deserializes from file.
///
/// The type.
/// The file.
/// System.Object.
object DeserializeFromFile(Type type, string file);
///
/// Deserializes from bytes.
///
/// The type.
/// The buffer.
/// System.Object.
object DeserializeFromBytes(Type type, byte[] buffer);
///
/// Serializes to bytes.
///
/// The obj.
/// System.Byte[][].
byte[] SerializeToBytes(object obj);
}
}