Composición de archivos SHAR

Contents
[ Hide Show ]

**Descripción general

shar es un script de shell Unix válido. Este formato es en su mayoría obsoleto. Sin embargo, puede componer un archivo de este tipo con Aspose.Zip de forma similar a otros archivos.

1try (SharArchive archive = new SharArchive()) {
2    archive.createEntry("alice.txt", new FileInputStream("alice.txt"));
3    archive.createEntry("datos.bin", new FileInputStream("bloque.raw"));
4    archive.save("resultado.shar");
5} catch (IOException ex) {
6}
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.