public Properties loadAsProperties() throws IOException, IllegalArgumentException { if (properties == null) { InputStream is = null; try { is = getInputStream(); properties = new Properties(); properties.load(getInputStream()); } finally { if (is != null) is.close(); } } return properties; }
public Properties loadAsProperties() throws IOException, IllegalArgumentException { if (properties == null) { InputStream is = null; try { is = getInputStream(); properties = new Properties(); properties.load(getInputStream()); } finally { if (is != null) is.close(); } } return properties; }
public Properties loadAsProperties() throws IOException, IllegalArgumentException { if (properties == null) { InputStream is = null; try { is = getInputStream(); properties = new Properties(); properties.load(getInputStream()); } finally { if (is != null) is.close(); } } return properties; }
public Properties loadAsProperties() throws IOException, IllegalArgumentException { if (properties == null) { InputStream is = null; try { is = getInputStream(); properties = new Properties(); properties.load(getInputStream()); } finally { if (is != null) is.close(); } } return properties; }
public byte[] getContent() throws IOException { long size = getSize(); if (size > Integer.MAX_VALUE) throw new IOException("Size over Integer.MAX_VALUE: " + size); InputStream is = null; try { is = getInputStream(); byte[] data = new byte[(int)size]; is.read(data); return data; } finally { if (is != null) is.close(); } }
public byte[] getContent() throws IOException { long size = getSize(); if (size > Integer.MAX_VALUE) throw new IOException("Size over Integer.MAX_VALUE: " + size); InputStream is = null; try { is = getInputStream(); byte[] data = new byte[(int)size]; is.read(data); return data; } finally { if (is != null) is.close(); } }
public byte[] getContent() throws IOException { long size = getSize(); if (size > Integer.MAX_VALUE) throw new IOException("Size over Integer.MAX_VALUE: " + size); InputStream is = null; try { is = getInputStream(); byte[] data = new byte[(int)size]; is.read(data); return data; } finally { if (is != null) is.close(); } }
public byte[] getContent() throws IOException { long size = getSize(); if (size > Integer.MAX_VALUE) throw new IOException("Size over Integer.MAX_VALUE: " + size); InputStream is = null; try { is = getInputStream(); byte[] data = new byte[(int)size]; is.read(data); return data; } finally { if (is != null) is.close(); } }