本文整理汇总了C#中biz.ritter.javapi.writeInt方法的典型用法代码示例。如果您正苦于以下问题:C# biz.ritter.javapi.writeInt方法的具体用法?C# biz.ritter.javapi.writeInt怎么用?C# biz.ritter.javapi.writeInt使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类biz.ritter.javapi
的用法示例。
在下文中一共展示了biz.ritter.javapi.writeInt方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: writeObject
/**
* Writes the state of this object to the stream passed.
*
* @param out
* the stream to write the state to.
* @throws IOException
* if the stream throws it during the write.
* @serialData {@code int} - the length of this object. {@code char[]} - the
* buffer from this object, which may be larger than the length
* field.
*/
private void writeObject(java.io.ObjectOutputStream outJ)
{
// throws IOException {
outJ.defaultWriteObject();
outJ.writeInt(length());
outJ.writeObject(getValue());
}
示例2: dowriteObject
/**
* Writes the data necessary for <code>put()</code> to work in deserialization.
*/
protected virtual void dowriteObject(java.io.ObjectOutputStream outJ)
{
//throws IOException {
outJ.writeInt(maxSizeJ);
base.doWriteObject(outJ);
}
示例3: writeObject
/*
* Customized serialization.
*/
private void writeObject(java.io.ObjectOutputStream outJ)
{
// throws IOException {
outJ.defaultWriteObject();
outJ.writeByte(MAJOR);
outJ.writeByte(MINOR);
if (null == parameters) {
outJ.writeInt(-1);
} else {
outJ.writeInt(parameters.Length);
foreach (Object element in parameters) {
outJ.writeObject(null == element ? null : element.toString());
}
}
}
示例4: writeExternal
public override void writeExternal(java.io.ObjectOutput outJ)
{
//throws IOException {
outJ.writeInt(maximumSize);
outJ.writeInt(size());
for (java.util.Iterator<Object> iterator = keySet().iterator(); iterator.hasNext(); )
{
Object key = iterator.next();
outJ.writeObject(key);
// be sure to call super.get(key), or you're likely to
// get infinite promotion recursion
Object value = base.get(key);
outJ.writeObject(value);
}
}