com.github.leeonky.dal.extensions.basic.sftp.util.FileDumper Maven / Gradle / Ivy
package com.github.leeonky.dal.extensions.basic.sftp.util;
import com.github.leeonky.dal.runtime.Data;
import com.github.leeonky.dal.runtime.inspector.Dumper;
import com.github.leeonky.dal.runtime.inspector.DumpingBuffer;
public class FileDumper implements Dumper {
@Override
public void dump(Data path, DumpingBuffer context) {
SFtpFile sFtpFile = (SFtpFile) path.instance();
context.append(sFtpFile.remoteInfo()).newLine();
dumpValue(path, context);
}
@Override
public void dumpValue(Data data, DumpingBuffer context) {
SFtpFile sFtpFile = (SFtpFile) data.instance();
context.append(sFtpFile.attribute()).append(" ").append(sFtpFile.name());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy