RpcOutputStream extends FileOutputStream { private void skipBytes(InputStream in, int n) throws IOException { byte[] tmpbuf = new byte[128]; while (n > 0) { int len = in.read(tmpbuf, 0, n < tmpbuf.length ? n : tmpbuf.length); if (len == -1) { throw new EOFException("Unexpected EOF"); } n -= len; } } RpcOutputStream(RpcPerforceFile file, RpcConnection rpcConnection, boolean useLocalDigester); private  RpcOutputStream(RpcPerforceFile file, P4Charset p4Charset, boolean isUnicodeServer, boolean useLocalDigester, int filesys_utf8bom); static RpcOutputStream getTmpOutputStream(RpcPerforceFile file); @Override void close(); long write(Map<String, Object> map); @Override void write(byte[] sourceBytes, int off, int len); @Override void write(byte[] b); long writeConverted(byte[] sourceBytes); @Override void write(int b); RpcPerforceFile getFile(); String getServerDigest(); void setServerDigest(String serverDigest); MD5Digester getLocalDigester(); void setLocalDigester(MD5Digester localDigester);  }
@Test public void testSkipBytes() throws Exception { }