net.sf.jcgm.core
Interface ICgmExtractor

All Superinterfaces:
IBeginMetafileNameExtractor

public interface ICgmExtractor
extends IBeginMetafileNameExtractor

An extractor used when splitting CGM files containing several CGM files.

Since:
May 7, 2010
Version:
$Id: $
Author:
xphc (Philippe Cadé)
See Also:
CGM.split(java.io.File, ICgmExtractor)

Method Summary
 void handleExtracted(java.lang.String fileName, java.io.InputStream in, long size)
          This method is called when a CGM file was extracted from the main CGM file.
 
Methods inherited from interface net.sf.jcgm.core.IBeginMetafileNameExtractor
extractFileName
 

Method Detail

handleExtracted

void handleExtracted(java.lang.String fileName,
                     java.io.InputStream in,
                     long size)
                     throws CgmException
This method is called when a CGM file was extracted from the main CGM file.

Parameters:
fileName - The file name to use for the extracted CGM file, is typically the result of a call to IBeginMetafileNameExtractor.extractFileName(String)
in - Data for the extracted file
size - The size of the extracted file
Throws:
CgmException - If an error happens during the handling of the extracted file


Part of the jcgm library http://jcgm.sourceforge.net/