public Stream < T > asStream ( ) { if ( modelType == null ) { throw new IllegalArgumentException ( "modelType can be not null" ) ; } if ( fromFile == null && fromStream == null ) { throw new IllegalArgumentException ( "Excel source not is null" ) ; } if ( fromFile != null ) { return ReaderFactory . readByFile ( this ) ; } else { return ReaderFactory . readByStream ( this ) ; } }
Return the read result as a Stream