package com.jscape.inet.sftp.protocol.v3.messages;

/**
 * @author Alex Usun
 */
public class FileOpenFlags {

    public final boolean read;
    public final boolean write;
    public final boolean append;
    public final boolean create;
    public final boolean truncate;
    public final boolean exclusively;

    public FileOpenFlags(boolean read, boolean write, boolean append, boolean create, boolean truncate, boolean exclusively) {
        this.read = read;
        this.write = write;
        this.append = append;
        this.create = create;
        this.truncate = truncate;
        this.exclusively = exclusively;
    }

    @Override
    public String toString() {
        return "FileOpenFlags {"
                + "read=" + this.read
                + ", write=" + this.write
                + ", append=" + this.append
                + ", create=" + this.create
                + ", truncate=" + this.truncate
                + ", exclusively=" + this.exclusively
                + '}';
    }
}
