|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.teldap.core.xmlvalidator.util.encoding.Encoding
public class Encoding
Copyright 2009 數位典藏與數位學習國家型科技計畫(TELDAP) 數位核心平台計畫
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Title: 檢查檔案編碼
Constructor Summary | |
---|---|
Encoding()
|
Method Summary | |
---|---|
java.util.HashMap |
collectMsg(java.io.File des)
|
boolean |
isEncodingAttrBig5(java.io.File des)
Encoding屬性值是否等於Big5:由於限定處理的檔案編碼為Big5,所以在XML檔案一開始的第一行,即XML檔案進行版本及使用編碼宣告處,如<? |
boolean |
isEncodingBig5(java.io.File des)
檔案編碼是否為Big5:檢查檔案是否正確編碼的方式,是將檔案以其宣稱的編碼,將檔案解碼為文字後,再由人來判斷是否為可讀的文字,若是可讀的文字而非亂碼,則可判斷該檔案的確採用其所宣稱的編碼方式。 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Encoding()
Method Detail |
---|
public boolean isEncodingBig5(java.io.File des)
des
- File XML檔案
public boolean isEncodingAttrBig5(java.io.File des)
des
- File XML檔案
public java.util.HashMap collectMsg(java.io.File des)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |