@Test void checkForZipFile() throws IOException { final InputStream rawInputStream = getClass().getResourceAsStream("data.zip"); final MimeTypeInputStream inputStream = new MimeTypeInputStream(rawInputStream); final MimeType mimeType = inputStream.getMimeType(); Assertions.assertEquals(MimeType.ZIP, mimeType); final ZipInputStream zipInputStream = new ZipInputStream(inputStream); final ZipEntry entry = zipInputStream.getNextEntry(); Assertions.assertNotNull(entry); Assertions.assertEquals("data.txt", entry.getName()); }
public MimeType getMimeType() { return mimeType; }
MimeTypeInputStream extends FilterInputStream { public MimeType getMimeType() { return mimeType; } }
MimeTypeInputStream extends FilterInputStream { public MimeType getMimeType() { return mimeType; } MimeTypeInputStream(final InputStream stream); }
MimeTypeInputStream extends FilterInputStream { public MimeType getMimeType() { return mimeType; } MimeTypeInputStream(final InputStream stream); MimeType getMimeType(); }
MimeTypeInputStream extends FilterInputStream { public MimeType getMimeType() { return mimeType; } MimeTypeInputStream(final InputStream stream); MimeType getMimeType();  }