How to get filename of xlsx file with apache poi XSSF?
case class XlsxSplitter(path: InputStream){
lazy val spreadSheet=load(path)
def load(path: InputStream):SpreadSheet={
val wb = new XSSFWorkbook(path)
.........
}
}
I could extract it from the path, but I would like to make my case class as generic as possible.