* @deprecated since 4.0, use try-with-resources, will be removed in 4.2
*/
@Deprecated
+ @Removal(version="4.2")
public static void write(POIDocument doc, OutputStream out) throws IOException {
try {
doc.write(out);
* @deprecated since 4.0, use try-with-resources, will be removed in 4.2
*/
@Deprecated
+ @Removal(version="4.2")
public static void write(Workbook doc, OutputStream out) throws IOException {
try {
doc.write(out);
* @deprecated since 4.0, use try-with-resources, will be removed in 4.2
*/
@Deprecated
+ @Removal(version="4.2")
public static void writeAndClose(POIDocument doc, OutputStream out) throws IOException {
try {
write(doc, out);
* @deprecated since 4.0, use try-with-resources, will be removed in 4.2
*/
@Deprecated
+ @Removal(version="4.2")
public static void writeAndClose(POIDocument doc, File out) throws IOException {
try {
doc.write(out);
* @deprecated since 4.0, use try-with-resources, will be removed in 4.2
*/
@Deprecated
+ @Removal(version="4.2")
public static void writeAndClose(POIDocument doc) throws IOException {
try {
doc.write();
* @deprecated since 4.0, use try-with-resources, will be removed in 4.2
*/
@Deprecated
+ @Removal(version="4.2")
public static void writeAndClose(Workbook doc, OutputStream out) throws IOException {
try {
doc.write(out);
* opposed to being loaded by the factory class which is accompanied by each generated XmlBeans interface.
* <p>
* This is especially necessary in a context which doesn't guarantee that the current (thread) context
- * cassloader has access to all XmlBeans schema definitions (*.xsb) - which is typically in OSGI the case.
+ * classloader has access to all XmlBeans schema definitions (*.xsb) - which is typically in OSGI the case.
* <p>
* The classloader will be only set for the current thread in a {@link ThreadLocal}. Although the
* ThreadLocal is implemented via a {@link WeakReference}, it's good style to {@code null} the classloader
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.util.LocaleUtil;
import org.apache.poi.xssf.XSSFTestDataSamples;
-import org.apache.poi.xssf.usermodel.XSSFFormulaEvaluator;
-import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.junit.AfterClass;
import org.junit.Test;
import org.junit.runner.RunWith;