Skip to content

Commit

Permalink
Added interface for StreamReaderAdapter
Browse files Browse the repository at this point in the history
  • Loading branch information
blcham committed Jan 6, 2025
1 parent 7ad0f2d commit 2c14733
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package cz.cvut.spipes.modules.util;

import cz.cvut.spipes.modules.ResourceFormat;
import cz.cvut.spipes.modules.model.Region;
import cz.cvut.spipes.registry.StreamResource;

import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.Charset;
import java.util.List;

public interface StreamReaderAdapter {
void initialise(InputStream inputStream, ResourceFormat sourceResourceFormat, int tableIndex, boolean acceptInvalidQuoting, Charset inputCharset, StreamResource sourceResource) throws IOException;
String[] getHeader(Boolean skipHeader) throws IOException;
boolean hasNextRow() throws IOException;
List<String> getNextRow() throws IOException;
List<Region> getMergedRegions();
String getSheetLabel() throws IOException;
void close() throws IOException;
}

0 comments on commit 2c14733

Please sign in to comment.