using System;
using System.IO;
namespace MediaBrowser.Model.Serialization
{
public interface IXmlSerializer
{
///
/// Deserializes from stream.
///
///
/// The stream.
/// ``0.
T DeserializeFromStream(Stream stream);
///
/// 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);
///
/// Deserializes from file.
///
///
/// The file.
/// ``0.
T DeserializeFromFile(string file);
///
/// 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);
}
}