com.jcraft.jsch.ChannelSftp.putHEAD()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(6.6k)|赞(0)|评价(0)|浏览(140)

本文整理了Java中com.jcraft.jsch.ChannelSftp.putHEAD()方法的一些代码示例,展示了ChannelSftp.putHEAD()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ChannelSftp.putHEAD()方法的具体详情如下:
包路径:com.jcraft.jsch.ChannelSftp
类名称:ChannelSftp
方法名:putHEAD

ChannelSftp.putHEAD介绍

暂无

代码示例

代码示例来源:origin: org.xbib/jsch-core

private void putHEAD(byte type, int length) {
  putHEAD(buf, type, length);
}

代码示例来源:origin: org.mule.jsch/jsch

private void sendINIT() throws Exception{
 packet.reset();
 putHEAD(SSH_FXP_INIT, 5);
 buf.putInt(3);                // version 3
 getSession().write(packet, this, 5+4);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jsch

private void sendINIT() throws Exception{
 packet.reset();
 putHEAD(SSH_FXP_INIT, 5);
 buf.putInt(3);                // version 3
 getSession().write(packet, this, 5+4);
}

代码示例来源:origin: com.jcraft.jsch/com.springsource.com.jcraft.jsch

private void sendINIT() throws Exception{
 packet.reset();
 putHEAD(SSH_FXP_INIT, 5);
 buf.putInt(3);                // version 3
 getSession().write(packet, this, 5+4);
}

代码示例来源:origin: com.jcraft.jsch/com.springsource.com.jcraft.jsch

private void sendPacketPath(byte fxp, byte[] path) throws Exception{
 packet.reset();
 putHEAD(fxp, 9+path.length);
 buf.putInt(seq++);
 buf.putString(path);             // path
 getSession().write(packet, this, 9+path.length+4);
}
private void sendPacketPath(byte fxp, byte[] p1, byte[] p2) throws Exception{

代码示例来源:origin: com.jcraft.jsch/com.springsource.com.jcraft.jsch

private void sendPacketPath(byte fxp, byte[] p1, byte[] p2) throws Exception{
 packet.reset();
 putHEAD(fxp, 13+p1.length+p2.length);
 buf.putInt(seq++);
 buf.putString(p1);
 buf.putString(p2);
 getSession().write(packet, this, 13+p1.length+p2.length+4);
}

代码示例来源:origin: com.jcraft.jsch/com.springsource.com.jcraft.jsch

private void sendOPEN(byte[] path, int mode) throws Exception{
 packet.reset();
 putHEAD(SSH_FXP_OPEN, 17+path.length);
 buf.putInt(seq++);
 buf.putString(path);
 buf.putInt(mode);
 buf.putInt(0);           // attrs
 getSession().write(packet, this, 17+path.length+4);
}
private void sendPacketPath(byte fxp, byte[] path) throws Exception{

代码示例来源:origin: com.jcraft.jsch/com.springsource.com.jcraft.jsch

private void sendREAD(byte[] handle, long offset, int length) throws Exception{
 packet.reset();
 putHEAD(SSH_FXP_READ, 21+handle.length);
 buf.putInt(seq++);
 buf.putString(handle);
 buf.putLong(offset);
 buf.putInt(length);
 getSession().write(packet, this, 21+handle.length+4);
}

代码示例来源:origin: org.xbib/jsch-core

private void sendOPEN(byte[] path, int mode) throws Exception {
  packet.reset();
  putHEAD(SSH_FXP_OPEN, 17 + path.length);
  buf.putInt(seq++);
  buf.putString(path);
  buf.putInt(mode);
  buf.putInt(0);
  getSession().write(packet, this, 17 + path.length + 4);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jsch

private void sendOPEN(byte[] path, int mode) throws Exception{
 packet.reset();
 putHEAD(SSH_FXP_OPEN, 17+path.length);
 buf.putInt(seq++);
 buf.putString(path);
 buf.putInt(mode);
 buf.putInt(0);           // attrs
 getSession().write(packet, this, 17+path.length+4);
}
private void sendPacketPath(byte fxp, byte[] path) throws Exception{

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jsch

private void sendSETSTAT(byte[] path, SftpATTRS attr) throws Exception{
 packet.reset();
 putHEAD(SSH_FXP_SETSTAT, 9+path.length+attr.length());
 buf.putInt(seq++);
 buf.putString(path);             // path
 attr.dump(buf);
 getSession().write(packet, this, 9+path.length+attr.length()+4);
}
private void sendREMOVE(byte[] path) throws Exception{

代码示例来源:origin: org.xbib/jsch-core

private void sendSETSTAT(byte[] path, SftpATTRS attr) throws Exception {
  packet.reset();
  putHEAD(SSH_FXP_SETSTAT, 9 + path.length + attr.length());
  buf.putInt(seq++);
  buf.putString(path);
  attr.dump(buf);
  getSession().write(packet, this, 9 + path.length + attr.length() + 4);
}

代码示例来源:origin: ePaul/jsch-documentation

private void sendSETSTAT(byte[] path, SftpATTRS attr) throws Exception{
 packet.reset();
 putHEAD(SSH_FXP_SETSTAT, 9+path.length+attr.length());
 buf.putInt(seq++);
 buf.putString(path);             // path
 attr.dump(buf);
 getSession().write(packet, this, 9+path.length+attr.length()+4);
}
private void sendREMOVE(byte[] path) throws Exception{

代码示例来源:origin: org.xbib/jsch-core

private void sendREAD(byte[] handle, long offset, int length,
           RequestQueue rrq) throws Exception {
  packet.reset();
  putHEAD(SSH_FXP_READ, 21 + handle.length);
  buf.putInt(seq++);
  buf.putString(handle);
  buf.putLong(offset);
  buf.putInt(length);
  getSession().write(packet, this, 21 + handle.length + 4);
  if (rrq != null) {
    rrq.add(seq - 1, offset, length);
  }
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jsch

private void sendREAD(byte[] handle, long offset, int length,
           RequestQueue rrq) throws Exception{
 packet.reset();
 putHEAD(SSH_FXP_READ, 21+handle.length);
 buf.putInt(seq++);
 buf.putString(handle);
 buf.putLong(offset);
 buf.putInt(length);
 getSession().write(packet, this, 21+handle.length+4);
 if(rrq!=null){
  rrq.add(seq-1, offset, length);
 }
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jsch

private void sendMKDIR(byte[] path, SftpATTRS attr) throws Exception{
 packet.reset();
 putHEAD(SSH_FXP_MKDIR, 9+path.length+(attr!=null?attr.length():4));
 buf.putInt(seq++);
 buf.putString(path);             // path
 if(attr!=null) attr.dump(buf);
 else buf.putInt(0);
 getSession().write(packet, this, 9+path.length+(attr!=null?attr.length():4)+4);
}
private void sendRMDIR(byte[] path) throws Exception{

代码示例来源:origin: org.xbib/jsch-core

private void sendMKDIR(byte[] path, SftpATTRS attr) throws Exception {
  packet.reset();
  putHEAD(SSH_FXP_MKDIR, 9 + path.length + (attr != null ? attr.length() : 4));
  buf.putInt(seq++);
  buf.putString(path);
  if (attr != null) attr.dump(buf);
  else buf.putInt(0);
  getSession().write(packet, this, 9 + path.length + (attr != null ? attr.length() : 4) + 4);
}

代码示例来源:origin: com.jcraft.jsch/com.springsource.com.jcraft.jsch

private void sendMKDIR(byte[] path, SftpATTRS attr) throws Exception{
 packet.reset();
 putHEAD(SSH_FXP_MKDIR, 9+path.length+(attr!=null?attr.length():4));
 buf.putInt(seq++);
 buf.putString(path);             // path
 if(attr!=null) attr.dump(buf);
 else buf.putInt(0);
 getSession().write(packet, this, 9+path.length+(attr!=null?attr.length():4)+4);
}
private void sendRMDIR(byte[] path) throws Exception{

代码示例来源:origin: org.mule.jsch/jsch

private void sendMKDIR(byte[] path, SftpATTRS attr) throws Exception{
 packet.reset();
 putHEAD(SSH_FXP_MKDIR, 9+path.length+(attr!=null?attr.length():4));
 buf.putInt(seq++);
 buf.putString(path);             // path
 if(attr!=null) attr.dump(buf);
 else buf.putInt(0);
 getSession().write(packet, this, 9+path.length+(attr!=null?attr.length():4)+4);
}
private void sendRMDIR(byte[] path) throws Exception{

代码示例来源:origin: ePaul/jsch-documentation

private void sendMKDIR(byte[] path, SftpATTRS attr) throws Exception{
 packet.reset();
 putHEAD(SSH_FXP_MKDIR, 9+path.length+(attr!=null?attr.length():4));
 buf.putInt(seq++);
 buf.putString(path);             // path
 if(attr!=null) attr.dump(buf);
 else buf.putInt(0);
 getSession().write(packet, this, 9+path.length+(attr!=null?attr.length():4)+4);
}
private void sendRMDIR(byte[] path) throws Exception{

相关文章

微信公众号

最新文章

更多

ChannelSftp类方法