play2-provider-api/src/main/java/com/google/code/play2/provider/api/Play2BuildFailure.java
private String readFileAsString()
        throws IOException
    {
        FileInputStream is = new FileInputStream( e.source() );
        try
        {
            byte[] buffer = new byte[8192];
            int len = is.read( buffer );
            ByteArrayOutputStream out = new ByteArrayOutputStream();
            while ( len != -1 )
            {
                out.write( buffer, 0, len );
                len = is.read( buffer );
            }
            return charsetName != null ? new String( out.toByteArray(), charsetName ) : new String( out.toByteArray() );
        }
        finally
        {
            is.close();
        }
    }
private String readFileAsString()
        throws IOException
    {
        FileInputStream is = new FileInputStream( e.source() );
        try
        {
            byte[] buffer = new byte[8192];
            int len = is.read( buffer );
            ByteArrayOutputStream out = new ByteArrayOutputStream();
            while ( len != -1 )
            {
                out.write( buffer, 0, len );
                len = is.read( buffer );
            }
            return charsetName != null ? new String( out.toByteArray(), charsetName ) : new String( out.toByteArray() );
        }
        finally
        {
            is.close();
        }
    }
private String readFileAsString ( ) throws IOException { FileInputStream is = new FileInputStream ( e . source ( ) ) ; try { byte [ ] buffer = new byte [ 8192 ] ; int len = is . read ( buffer ) ; ByteArrayOutputStream out = new ByteArrayOutputStream ( ) ; while ( len != - 1 ) { out . write ( buffer , 0 , len ) ; len = is . read ( buffer ) ; } return charsetName != null ? new String ( out . toByteArray ( ) , charsetName ) : new String ( out . toByteArray ( ) ) ; } finally { is . close ( ) ; } }
copied from AbstractPlay2SourcePositionMapper.java
copied from AbstractPlay2SourcePositionMapper . java