* Contributors:
* Igor Malinin - initial contribution
*
- * $Id: I18NDocumentProvider.java,v 1.1 2004-09-02 18:26:30 jsurfer Exp $
+ * $Id: I18NDocumentProvider.java,v 1.2 2006-10-21 23:13:54 pombredanne Exp $
*/
package net.sourceforge.phpeclipse.ui.editor;
throw new CoreException(s);
} finally {
- if (in != null) try {
- in.close();
- } catch (IOException x) {
- }
+ if (in != null)
+ try {
+ in.close();
+ } catch (IOException x) {
+ }
}
}
}
/**
- * Tries to determine encoding from contents of the stream. Returns <code>null</code>
- * if encoding is unknown.
+ * Tries to determine encoding from contents of the stream. Returns
+ * <code>null</code> if encoding is unknown.
*/
public String getDeclaredEncoding(InputStream in) throws IOException {
return getBOMEncoding(in);
}
/**
- * Tries to determine encoding from the byte order mark. Returns <code>null</code>
- * if encoding is unknown.
+ * Tries to determine encoding from the byte order mark. Returns
+ * <code>null</code> if encoding is unknown.
*/
private String getBOMEncoding(InputStream in) throws IOException {
int first = in.read();