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:
Nick Burch 2008-05-20 17:12:08 +00:00
parent 2df6546a1b
commit 055da485c8
2 changed files with 11 additions and 0 deletions

View File

@ -20,6 +20,7 @@ package org.apache.poi;
import java.io.ByteArrayInputStream; import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream; import java.io.ByteArrayOutputStream;
import java.io.IOException; import java.io.IOException;
import java.io.OutputStream;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; 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 * Copies nodes from one POIFS to the other minus the excepts
* @param source is the source POIFS to copy from * @param source is the source POIFS to copy from

View File

@ -18,6 +18,7 @@ package org.apache.poi.hdgf;
import java.io.FileInputStream; import java.io.FileInputStream;
import java.io.IOException; import java.io.IOException;
import java.io.OutputStream;
import org.apache.poi.POIDocument; import org.apache.poi.POIDocument;
import org.apache.poi.hdgf.chunks.ChunkFactory; 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 * For testing only
*/ */