/** Using UTF-8 */ protected static String readSingleName(Response res) throws IOException { return readSingleName(res, IOUtils.UTF8); }
public String canonicalize(String path) throws IOException { return readSingleName( doRequest( newRequest(PacketType.REALPATH).putString(path, sub.getRemoteCharset()) ), sub.getRemoteCharset()); }
public String readLink(String path) throws IOException { if (operativeVersion < 3) throw new SFTPException("READLINK is not supported in SFTPv" + operativeVersion); return readSingleName( doRequest( newRequest(PacketType.READLINK).putString(path, sub.getRemoteCharset()) ), sub.getRemoteCharset()); }
/** Using UTF-8 */ protected static String readSingleName(Response res) throws IOException { return readSingleName(res, IOUtils.UTF8); }
public String canonicalize(String path) throws IOException { return readSingleName( doRequest( newRequest(PacketType.REALPATH).putString(path) )); }
public String readLink(String path) throws IOException { if (operativeVersion < 3) throw new SFTPException("READLINK is not supported in SFTPv" + operativeVersion); return readSingleName( doRequest( newRequest(PacketType.READLINK).putString(path) )); }
public String canonicalize(String path) throws IOException { return readSingleName( doRequest( newRequest(PacketType.REALPATH).putString(path, sub.getRemoteCharset()) ), sub.getRemoteCharset()); }
public String readLink(String path) throws IOException { if (operativeVersion < 3) throw new SFTPException("READLINK is not supported in SFTPv" + operativeVersion); return readSingleName( doRequest( newRequest(PacketType.READLINK).putString(path, sub.getRemoteCharset()) ), sub.getRemoteCharset()); }