gitlab #243
Change-Id: I1d422e6c4103a4836210d15648ad47785fbe3972
package org.simantics.export.core.pdf;
+import java.io.Closeable;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import com.lowagie.text.pdf.PdfReader;
import com.lowagie.text.pdf.PdfString;
-public class ImportPdfReader {
+public class ImportPdfReader implements Closeable {
/** File if opened from file */
public File file;
return result;
}
- public void close() {
+ public synchronized void close() {
if ( reader!=null ) {
reader.close();
reader = null;