Code example for Charset

Methods: name

0
		} catch (Exception e) {
			e.printStackTrace();
		} 
 
		if (charset != null) {
			fileCharacterEnding = charset.name();
		} 
 
		return fileCharacterEnding;
 
	} 
 
	/** 
	 * @param args 
	 */ 
	public static void main(String[] args) {
		String filePath = "d:\\test.java";
		String type = FileCode.getFileCharacterEnding(filePath);
		System.out.println(type);
 
	}