/** * {@inheritDoc} */ public <T> T read(final T bean, final String... nameMapping) throws IOException { if( bean == null ) { throw new NullPointerException("bean should not be null"); } else if( nameMapping == null ) { throw new NullPointerException("nameMapping should not be null"); } return readIntoBean(bean, nameMapping, null); }
/** * {@inheritDoc} */ public <T> T read(final T bean, final String[] nameMapping, final CellProcessor... processors) throws IOException { if( bean == null ) { throw new NullPointerException("bean should not be null"); } else if( nameMapping == null ) { throw new NullPointerException("nameMapping should not be null"); } else if( processors == null ) { throw new NullPointerException("processors should not be null"); } return readIntoBean(bean, nameMapping, processors); }
/** * {@inheritDoc} */ public <T> T read(final Class<T> clazz, final String... nameMapping) throws IOException { if( clazz == null ) { throw new NullPointerException("clazz should not be null"); } else if( nameMapping == null ) { throw new NullPointerException("nameMapping should not be null"); } return readIntoBean(instantiateBean(clazz), nameMapping, null); }
/** * {@inheritDoc} */ public <T> T read(final Class<T> clazz, final String[] nameMapping, final CellProcessor... processors) throws IOException { if( clazz == null ) { throw new NullPointerException("clazz should not be null"); } else if( nameMapping == null ) { throw new NullPointerException("nameMapping should not be null"); } else if( processors == null ) { throw new NullPointerException("processors should not be null"); } return readIntoBean(instantiateBean(clazz), nameMapping, processors); }