@SuppressWarnings("static-method") @Test @Ignore public void testDataDownloaderFile() throws Exception { final byte[] data = DataDownloader.downloadData( "file: ); System.out.println(new String(data)); }
public static byte[] downloadData(final String ds, final boolean gzipped) throws IOException { if (gzipped && Base64.isBase64(ds.getBytes())) { LOGGER.info( "Se ha indicado que los datos de entrada estan comrpimidos con GZIP" ); return downloadData( Base64.encode( gunzipBytes( Base64.decode(ds.replace("_", "/").replace("-", "+")) ) ) ); } return downloadData(ds); }
DataDownloader { public static byte[] downloadData(final String ds, final boolean gzipped) throws IOException { if (gzipped && Base64.isBase64(ds.getBytes())) { LOGGER.info( "Se ha indicado que los datos de entrada estan comrpimidos con GZIP" ); return downloadData( Base64.encode( gunzipBytes( Base64.decode(ds.replace("_", "/").replace("-", "+")) ) ) ); } return downloadData(ds); } }
DataDownloader { public static byte[] downloadData(final String ds, final boolean gzipped) throws IOException { if (gzipped && Base64.isBase64(ds.getBytes())) { LOGGER.info( "Se ha indicado que los datos de entrada estan comrpimidos con GZIP" ); return downloadData( Base64.encode( gunzipBytes( Base64.decode(ds.replace("_", "/").replace("-", "+")) ) ) ); } return downloadData(ds); } private  DataDownloader(); }
DataDownloader { public static byte[] downloadData(final String ds, final boolean gzipped) throws IOException { if (gzipped && Base64.isBase64(ds.getBytes())) { LOGGER.info( "Se ha indicado que los datos de entrada estan comrpimidos con GZIP" ); return downloadData( Base64.encode( gunzipBytes( Base64.decode(ds.replace("_", "/").replace("-", "+")) ) ) ); } return downloadData(ds); } private  DataDownloader(); static byte[] downloadData(final String ds, final boolean gzipped); static byte[] downloadData(final String ds); }
DataDownloader { public static byte[] downloadData(final String ds, final boolean gzipped) throws IOException { if (gzipped && Base64.isBase64(ds.getBytes())) { LOGGER.info( "Se ha indicado que los datos de entrada estan comrpimidos con GZIP" ); return downloadData( Base64.encode( gunzipBytes( Base64.decode(ds.replace("_", "/").replace("-", "+")) ) ) ); } return downloadData(ds); } private  DataDownloader(); static byte[] downloadData(final String ds, final boolean gzipped); static byte[] downloadData(final String ds);  }