nakedbytestream.java
来自「用于Java 组件和通过Windows COM 对象或Windows DLL 来」· Java 代码 · 共 31 行
JAVA
31 行
//******************************************************************
// Released under the DevelopMentor OpenSource Software License.
// Please consult the LICENSE file in the project root directory,
// or at http://www.develop.com for details before using this
// software.
//******************************************************************
package com.develop.io;
import java.io.*;
/**
* works around the java ByteArray streams, which do not provide
* direct access to the byte array. Direct access can make programs
* trickier to debug but saves a System.arraycopy on every marshal!
*/
public class NakedByteStream extends ByteArrayOutputStream {
public byte[] getInternalBuffer() {
return buf;
}
public int getCount() {
return count;
}
/*
public synchronized void write(byte b[], int off, int len) {
System.out.println("Writing " + len + " bytes at " + count);
}
*/
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?