> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# com.phoenix_int.aserver.util

## Enum: Parser.Mode

**Package:** `com.phoenix_int.aserver.util`

**Class Hierarchy**

```java theme={null}
↳ java.lang.Object
  ↳ java.lang.Enum<Parser.Mode>
    ↳ com.phoenix_int.aserver.util.Parser.Mode
```

**All Implemented Interfaces:**

* `java.io.Serializable`, `java.lang.Comparable<Parser.Mode>`

**Enclosing interface:**

* [Parser](https://developer.synopsys.com/docs/modelcenter/modelcenter-remote-execution-java-api/com/phoenix_int/aserver/util/Parser.md)

***

**Declaration**

```java theme={null}
public static enum Parser.Mode
extends java.lang.Enum<Parser.Mode>
```

File-access mode. Moved to type-safe enum from legacy integer constants.

## Enum Constant Summary

| Enum Constant and Description |
| - |
| `AUTOMATIC` |
| `BUFFERED` |
| `RANDOM` |

## Field Summary

| Modifier and Type | Field and Description |
| - | - |
| `static long` | `FILE_SIZE_LIMIT` |

## Method Summary

| Modifier and Type | Method and Description |
| - | - |
| `static Parser.Mode` | `fromCode(int code)` |
| `int` | `getCode()` Retrieve the legacy integer code assigned to this access mode |
| `IPHXLineStore` | `newLineStore(java.io.File file)` |
| `IPHXLineStore` | `newLineStore(java.io.File file, com.phoenix_int.util.PHXFileUtils.Encoding encoding)` |
| `abstract IPHXLineStore` | `newLineStore(java.io.File file, com.phoenix_int.util.PHXFileUtils.Encoding encoding, com.phoenix_int.util.IProgressListener progress)` Create a new line store consistent with the file-access mode |
| `static Parser.Mode` | `valueOf(java.lang.String name)` Returns the enum constant of this type with the specified name. |
| `static Parser.Mode[]` | `values()` Returns an array containing the constants of this enum type, in the order they are declared. |

### Methods inherited from class java.lang.Enum

`clone`, `compareTo`, `equals`, `finalize`, `getDeclaringClass`, `hashCode`, `name`, `ordinal`, `toString`, `valueOf`

### Methods inherited from class java.lang.Object

`getClass`, `notify`, `notifyAll`, `wait`, `wait`, `wait`

## Enum Constant Detail

### RANDOM

```java theme={null}
public static final Parser.Mode RANDOM
```

### BUFFERED

```java theme={null}
public static final Parser.Mode BUFFERED
```

### AUTOMATIC

```java theme={null}
public static final Parser.Mode AUTOMATIC
```

## Field Detail

### FILE\_SIZE\_LIMIT

```java theme={null}
public static final long FILE_SIZE_LIMIT
```

**See Also:**

* [Constant Field Values](https://developer.synopsys.com/docs/modelcenter/modelcenter-remote-execution-java-api/constant-values.md)

## Method Detail

### values

```java theme={null}
public static Parser.Mode[] values()
```

Returns an array containing the constants of this enum type, in the order they are declared.  This method may be used to iterate over the constants as follows:

```java theme={null}
for (Parser.Mode c : Parser.Mode.values())
     System.out.println(c);
```

**Returns:**

* an array containing the constants of this enum type, in the order they are declared

### valueOf

```java theme={null}
public static Parser.Mode valueOf(java.lang.String name)
```

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

**Parameters:**

* `name` - the name of the enum constant to be returned.

**Returns:**

* the enum constant with the specified name

**Throws:**

* `java.lang.IllegalArgumentException` - if this enum type has no constant with the specified name
* `java.lang.NullPointerException` - if the argument is null

### getCode

```java theme={null}
public int getCode()
```

Retrieve the legacy integer code assigned to this access mode

**Returns:**

* code

### newLineStore

```java theme={null}
public IPHXLineStore newLineStore(java.io.File file)
                           throws java.io.IOException
```

**Throws:**

* `java.io.IOException`

### newLineStore

```java theme={null}
public IPHXLineStore newLineStore(java.io.File file, 
                                  com.phoenix_int.util.PHXFileUtils.Encoding encoding)
                           throws java.io.IOException
```

**Throws:**

* `java.io.IOException`

### newLineStore

```java theme={null}
public abstract IPHXLineStore newLineStore(java.io.File file, 
                                           com.phoenix_int.util.PHXFileUtils.Encoding encoding, 
                                           com.phoenix_int.util.IProgressListener progress)
                                    throws java.io.IOException
```

Create a new line store consistent with the file-access mode

**Parameters:**

* `file` -

**Returns:**

* line store

**Throws:**

* `java.io.IOException`

### fromCode

```java theme={null}
public static Parser.Mode fromCode(int code)
```
