applesingle/api/src/main/java/io/github/applecommander/applesingle/ProdosFileInfo.java

35 lines
811 B
Java

package io.github.applecommander.applesingle;
import io.github.applecommander.applesingle.AppleSingle.Builder;
/**
* A simple ProDOS File Info wrapper class.
* <p>
* Note 1: {@link #standardBIN()} can be used to generate sensible defaults.<br/>
* Note 2: Fields are package-private to allow {@link Builder} to have direct access.<br/>
*/
public class ProdosFileInfo {
int access;
int fileType;
int auxType;
public static ProdosFileInfo standardBIN() {
return new ProdosFileInfo(0xc3, 0x06, 0x0000);
}
public ProdosFileInfo(int access, int fileType, int auxType) {
this.access = access;
this.fileType = fileType;
this.auxType = auxType;
}
public int getAccess() {
return access;
}
public int getFileType() {
return fileType;
}
public int getAuxType() {
return auxType;
}
}