本文整理汇总了C#中biz.ritter.javapi.write方法的典型用法代码示例。如果您正苦于以下问题:C# biz.ritter.javapi.write方法的具体用法?C# biz.ritter.javapi.write怎么用?C# biz.ritter.javapi.write使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类biz.ritter.javapi
的用法示例。
在下文中一共展示了biz.ritter.javapi.write方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: writeShort
private int writeShort(java.io.OutputStream os, int i)
{
//throws java.io.IOException {
os.write(i & 0xFF);
os.write((i >> 8) & 0xFF);
return i;
}
示例2: writeLong
private long writeLong(java.io.OutputStream os, long i)
{
//throws java.io.IOException {
// Write out the long value as an unsigned int
os.write((int) (i & 0xFF));
os.write((int) (i >> 8) & 0xFF);
os.write((int) (i >> 16) & 0xFF);
os.write((int) (i >> 24) & 0xFF);
return i;
}
示例3: flushStartTag
private static void flushStartTag(String tagName, java.io.BufferedWriter outJ)
{
//throws IOException {
flushIndent (++indent, outJ);
outJ.write ("<"); //$NON-NLS-1$
outJ.write (tagName);
outJ.write (">"); //$NON-NLS-1$
outJ.newLine ();
}
示例4: flushPairs
private static void flushPairs(String[] attrKeys, String[] attrValues,
java.io.BufferedWriter outJ)
{
// throws IOException {
for (int i = 0; i < attrKeys.Length; i++) {
outJ.write (" "); //$NON-NLS-1$
outJ.write (attrKeys [i]);
outJ.write ("=\""); //$NON-NLS-1$
outJ.write (htmlEncode (attrValues [i]));
outJ.write ("\""); //$NON-NLS-1$
}
}
示例5: flushIndent
private static void flushIndent(int ind, java.io.BufferedWriter outJ)
{
//throws IOException {
for (int i = 0; i < ind; i++) {
outJ.write (" "); //$NON-NLS-1$
}
}
示例6: flushEmptyElement
private static void flushEmptyElement(String tagName, String[] attrKeys,
String[] attrValues, java.io.BufferedWriter outJ)
{
// throws IOException {
flushIndent (++indent, outJ);
outJ.write ("<"); //$NON-NLS-1$
outJ.write (tagName);
flushPairs (attrKeys, attrValues, outJ);
outJ.write (" />"); //$NON-NLS-1$
outJ.newLine ();
indent--;
}