package com.epson.memcardacc;

import java.io.Serializable;

public class CifsFileInfo implements Serializable {
    private static final long serialVersionUID = 1;
    public int mAttribute;
    public String mFileName;

    public CifsFileInfo(String str, int i) {
        mFileName = str;
        mAttribute = i;
    }

    public boolean isDirectory() {
        return (mAttribute & 16) != 0;
    }

    public boolean isReadableDir() {
        int i = mAttribute;
        return (i & 16) != 0 && (i & 6) == 0;
    }

    public boolean readableNormalFile() {
        int i = mAttribute;
        return (i & 16) == 0 && (i & 6) == 0;
    }

    public boolean isReadable() {
        return (mAttribute & 6) == 0;
    }

    public boolean equals(Object obj) {
        return mFileName.equals(((CifsFileInfo) obj).mFileName);
    }
}
