Example usage for org.apache.poi.xssf.eventusermodel XSSFReader getStylesData

List of usage examples for org.apache.poi.xssf.eventusermodel XSSFReader getStylesData

Introduction

In this page you can find the example usage for org.apache.poi.xssf.eventusermodel XSSFReader getStylesData.

Prototype

public InputStream getStylesData() throws IOException, InvalidFormatException 

Source Link

Document

Returns an InputStream to read the contents of the styles table.

Usage

From source file:ec.util.spreadsheet.poi.FastPoiBook.java

License:EUPL

private static ByteSource newStylesDataSupplier(final XSSFReader reader) {
    return new ByteSource() {
        @Override// w w  w .  ja  va2s. c  o m
        public InputStream openStream() throws IOException {
            try {
                return reader.getStylesData();
            } catch (InvalidFormatException ex) {
                throw new IOException(ex);
            }
        }
    };
}