Put abstract write(OutputStream) method on POIDocument
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@658350 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ee4ba764b7
commit
e09c35f448
@ -20,6 +20,7 @@ package org.apache.poi;
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
@ -192,6 +193,11 @@ public abstract class POIDocument {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Writes the document out to the specified output stream
|
||||
*/
|
||||
public abstract void write(OutputStream out) throws IOException;
|
||||
|
||||
/**
|
||||
* Copies nodes from one POIFS to the other minus the excepts
|
||||
* @param source is the source POIFS to copy from
|
||||
|
@ -18,6 +18,7 @@ package org.apache.poi.hdgf;
|
||||
|
||||
import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
|
||||
import org.apache.poi.POIDocument;
|
||||
import org.apache.poi.hdgf.chunks.ChunkFactory;
|
||||
@ -149,6 +150,10 @@ public class HDGFDiagram extends POIDocument {
|
||||
}
|
||||
}
|
||||
|
||||
public void write(OutputStream out) {
|
||||
throw new IllegalStateException("Writing is not yet implemented, see http://poi.apache.org/hdgf/");
|
||||
}
|
||||
|
||||
/**
|
||||
* For testing only
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user