public SerializeBlockAsZippedXML ( Stream stream, |
||
stream | Stream | |
block | ||
Résultat | void |
public void SerializeBlockAsZippedXML(Stream stream, Block block)
{
ZipOutputStream zippedStream = new ZipOutputStream(stream);
zippedStream.SetLevel(5);
ZipEntry entry = new ZipEntry("block.xml");
zippedStream.PutNextEntry(entry);
xmls.Serialize(zippedStream, block);
zippedStream.Finish();
zippedStream.Close();
stream.Close();
}
BlockSerializer::SerializeBlockAsZippedXML ( String filePath, |