package com.jscape.inet.sftp.protocol.v4.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 final boolean text;

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

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