@Test void checkForTarGzFile() throws IOException { final InputStream rawInputStream = getClass().getResourceAsStream("data.tar.gz"); final MimeTypeInputStream inputStream = new MimeTypeInputStream(rawInputStream); final MimeType mimeType = inputStream.getMimeType(); Assertions.assertEquals(MimeType.GZIP, mimeType); }
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();  }