2 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
\r
4 * This library is free software; you can redistribute it and/or modify it under
\r
5 * the terms of the GNU Lesser General Public License as published by the Free
\r
6 * Software Foundation; either version 2.1 of the License, or (at your option)
\r
9 * This library is distributed in the hope that it will be useful, but WITHOUT
\r
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
\r
11 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
\r
15 package com.liferay.portal.kernel.util;
\r
17 import java.io.File;
\r
18 import java.io.InputStream;
\r
21 * @author Jorge Ferrer
\r
22 * @author Brian Wing Shun Chan
\r
24 public interface MimeTypesOverride {
\r
26 public String getContentType(File file);
\r
28 public String getContentType(InputStream inputStream, String fileName);
\r
30 public String getContentType(String fileName);
\r