private void prefetchNextEntry() throws IOException { invalidateCurrentWrapperStream(); nextEntry = zis.getNextEntry(); isNextEntryPrefetched = true; } private void recordZipEntryEOF() throws IOException {
private Inbound(final InputStream is) throws IOException { zis = new ZipInputStream(new BufferedInputStream(is)); prefetchNextEntry(); }
/** * Creates a new Inbound Payload of the given content type, read from * the specified InputStream. The payloadContentType should be the * content-type from the inbound http request or response. * @param payloadContentType content-type from the inbound http request or response * @param is the InputStream from which the Payload should be read * @return the prepared Payload * @throws java.io.IOException */ public static Inbound newInstance(final String payloadContentType, final InputStream is) throws IOException { if (payloadContentType == null) { return EMPTY_PAYLOAD; } if (TextPayloadImpl.Inbound.supportsContentType(payloadContentType)) { return TextPayloadImpl.Inbound.newInstance(payloadContentType, is); } else if (ZipPayloadImpl.Inbound.supportsContentType(payloadContentType)) { return ZipPayloadImpl.Inbound.newInstance(payloadContentType, is); } else { return null; } }
/** * Creates a new Inbound Payload of the given content type, read from * the specified InputStream. The payloadContentType should be the * content-type from the inbound http request or response. * @param payloadContentType content-type from the inbound http request or response * @param is the InputStream from which the Payload should be read * @return the prepared Payload * @throws java.io.IOException */ public static Inbound newInstance(final String payloadContentType, final InputStream is) throws IOException { if (payloadContentType == null) { return EMPTY_PAYLOAD; } if (TextPayloadImpl.Inbound.supportsContentType(payloadContentType)) { return TextPayloadImpl.Inbound.newInstance(payloadContentType, is); } else if (ZipPayloadImpl.Inbound.supportsContentType(payloadContentType)) { return ZipPayloadImpl.Inbound.newInstance(payloadContentType, is); } else { return null; } }
/** * Creates a new Inbound Payload of the given content type, read from * the specified InputStream. The payloadContentType should be the * content-type from the inbound http request or response. * @param payloadContentType content-type from the inbound http request or response * @param is the InputStream from which the Payload should be read * @return the prepared Payload * @throws java.io.IOException */ public static Inbound newInstance(final String payloadContentType, final InputStream is) throws IOException { if (payloadContentType == null) { return EMPTY_PAYLOAD; } if (TextPayloadImpl.Inbound.supportsContentType(payloadContentType)) { return TextPayloadImpl.Inbound.newInstance(payloadContentType, is); } else if (ZipPayloadImpl.Inbound.supportsContentType(payloadContentType)) { return ZipPayloadImpl.Inbound.newInstance(payloadContentType, is); } else { return null; } }
private Inbound(final InputStream is) throws IOException { zis = new ZipInputStream(new BufferedInputStream(is)); prefetchNextEntry(); }
private void recordZipEntryEOF() throws IOException { invalidateCurrentWrapperStream(); prefetchNextEntry(); }
private Inbound(final InputStream is) throws IOException { zis = new ZipInputStream(new BufferedInputStream(is)); prefetchNextEntry(); }
private void recordZipEntryEOF() throws IOException { invalidateCurrentWrapperStream(); prefetchNextEntry(); }
private void recordZipEntryEOF() throws IOException { invalidateCurrentWrapperStream(); prefetchNextEntry(); }
/** * Returns a new Zip implementation of the Inbound Payload. * @param payloadContentType content type for the payload * @param is InputStream from which to read the payload * @return Payload.Inbound containing the data from the specified input stream; * null if the payloadContentType is not what this zip-based * implementation can handle * @throws java.io.IOException */ public static Inbound newInstance(final String payloadContentType, final InputStream is) throws IOException { return new Inbound(is); }
private void prefetchNextEntry() throws IOException { invalidateCurrentWrapperStream(); nextEntry = zis.getNextEntry(); isNextEntryPrefetched = true; } private void recordZipEntryEOF() throws IOException {
private void prefetchNextEntry() throws IOException { invalidateCurrentWrapperStream(); nextEntry = zis.getNextEntry(); isNextEntryPrefetched = true; } private void recordZipEntryEOF() throws IOException {
/** * Returns a new Zip implementation of the Inbound Payload. * @param payloadContentType content type for the payload * @param is InputStream from which to read the payload * @return Payload.Inbound containing the data from the specified input stream; * null if the payloadContentType is not what this zip-based * implementation can handle * @throws java.io.IOException */ public static Inbound newInstance(final String payloadContentType, final InputStream is) throws IOException { return new Inbound(is); }
/** * Returns a new Zip implementation of the Inbound Payload. * @param payloadContentType content type for the payload * @param is InputStream from which to read the payload * @return Payload.Inbound containing the data from the specified input stream; * null if the payloadContentType is not what this zip-based * implementation can handle * @throws java.io.IOException */ public static Inbound newInstance(final String payloadContentType, final InputStream is) throws IOException { return new Inbound(is); }