public void setFileFromAJar ( String fileName ) { InputStream is = this . getClass ( ) . getResourceAsStream ( fileName ) ; if ( is != null ) { this . fileName = fileName ; reader = new InputStreamReader ( is ) ; } }
Read a file resouce located in a jar