Code example for LineNumberReader

0
        Reader reader,
        int limit,
        JSONObject options,
        List<Exception> exceptions
    ) { 
        LineNumberReader lnReader = new LineNumberReader(reader);
        TableDataReader dataReader = new PCAxisTableDataReader(lnReader, exceptions);
         
        // Stuff these settings to get TabularImportingParserBase.readTable 
        // to behave as we want. 
        JSONUtilities.safePut(options, "ignoreLines", -1);
        JSONUtilities.safePut(options, "headerLines", 1);
        JSONUtilities.safePut(options, "storeBlankRows", true);
        JSONUtilities.safePut(options, "storeBlankCellsAsNulls", true);
         
        TabularImportingParserBase.readTable( 
            project, metadata, job, dataReader,
            fileSource, limit, options, exceptions);
    } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE