All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.leeonky.dal.extensions.basic.sftp.util.FileDumper Maven / Gradle / Ivy

There is a newer version: 0.7.4
Show newest version
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