本文整理汇总了C#中com.ximpleware.VTDNav.getEncoding方法的典型用法代码示例。如果您正苦于以下问题:C# VTDNav.getEncoding方法的具体用法?C# VTDNav.getEncoding怎么用?C# VTDNav.getEncoding使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.ximpleware.VTDNav
的用法示例。
在下文中一共展示了VTDNav.getEncoding方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: bind
/// <summary> Attach master document to this instance of XMLModifier</summary>
/// <param name="masterDocument">*
/// </param>
public void bind(VTDNav masterDocument)
{
if (masterDocument == null)
throw new System.ArgumentException("MasterDocument can't be null");
md = masterDocument;
flb = new FastLongBuffer();
fob = new FastObjectBuffer();
int i = intHash.determineHashWidth(md.vtdSize);
insertHash = new intHash(i);
deleteHash = new intHash(i);
//determine encoding charset string here
encoding = md.getEncoding();
switch (encoding)
{
case VTDNav.FORMAT_ASCII:
charSet = "ascii";
break;
case VTDNav.FORMAT_ISO_8859_1:
charSet = "iso-8859-1";
break;
case VTDNav.FORMAT_UTF8:
charSet = "utf-8";
break;
case VTDNav.FORMAT_UTF_16BE:
charSet = "utf-16be";
break;
case VTDNav.FORMAT_UTF_16LE:
charSet = "utf-16le";
break;
case VTDNav.FORMAT_ISO_8859_2:
charSet = "iso-8859-2";
break;
case VTDNav.FORMAT_ISO_8859_3:
charSet = "iso-8859-3";
break;
case VTDNav.FORMAT_ISO_8859_4:
charSet = "iso-8859-4";
break;
case VTDNav.FORMAT_ISO_8859_5:
charSet = "iso-8859-5";
break;
case VTDNav.FORMAT_ISO_8859_6:
charSet = "iso-8859-6";
break;
case VTDNav.FORMAT_ISO_8859_7:
charSet = "iso-8859-7";
break;
case VTDNav.FORMAT_ISO_8859_8:
charSet = "iso-8859-8";
break;
case VTDNav.FORMAT_ISO_8859_9:
charSet = "iso-8859-9";
break;
case VTDNav.FORMAT_ISO_8859_10:
charSet = "iso-8859-10";
break;
case VTDNav.FORMAT_ISO_8859_11:
charSet = "iso-8859-11";
break;
case VTDNav.FORMAT_ISO_8859_12:
charSet = "iso-8859-12";
break;
case VTDNav.FORMAT_ISO_8859_13:
charSet = "iso-8859-13";
break;
case VTDNav.FORMAT_ISO_8859_14:
charSet = "iso-8859-14";
break;
case VTDNav.FORMAT_ISO_8859_15:
charSet = "iso-8859-15";
break;
case VTDNav.FORMAT_WIN_1250:
charSet = "windows-1250";
break;
case VTDNav.FORMAT_WIN_1251:
charSet = "windows-1251";
break;
case VTDNav.FORMAT_WIN_1252:
charSet = "windows-1252";
break;
case VTDNav.FORMAT_WIN_1253:
charSet = "windows-1253";
break;
case VTDNav.FORMAT_WIN_1254:
charSet = "windows-1254";
break;
case VTDNav.FORMAT_WIN_1255:
charSet = "windows-1255";
break;
case VTDNav.FORMAT_WIN_1256:
charSet = "windows-1256";
break;
//.........这里部分代码省略.........