public final String loadString(final String pFileName)
        throws IOException {
    URL urlFile = SrvLedger.class
      .getResource(pFileName);
    if (urlFile != null) {
      InputStream inputStream = null;
      try {
        inputStream = SrvLedger.class.getResourceAsStream(pFileName);
        byte[] bArray = new byte[inputStream.available()];
        inputStream.read(bArray, 0, inputStream.available());
        return new String(bArray, "UTF-8");
      } finally {
        if (inputStream != null) {
          inputStream.close();
        }
      }
    }
    return null;
  }
public final String loadString ( final String pFileName ) throws IOException { URL urlFile = SrvLedger . class . getResource ( pFileName ) ; if ( urlFile != null ) { InputStream inputStream = null ; try { inputStream = SrvLedger . class . getResourceAsStream ( pFileName ) ; byte [ ] bArray = new byte [ inputStream . available ( ) ] ; inputStream . read ( bArray , 0 , inputStream . available ( ) ) ; return new String ( bArray , "UTF-8" ) ; } finally { if ( inputStream != null ) { inputStream . close ( ) ; } } } return null ; }
<p>Load string file (usually SQL query).</p>
@param pFileName file name
@return String usually SQL query
@throws IOException - IO exception