> ## 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.

# Parser

## Interface: Parser

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

**All Known Implementing Classes:**

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

***

**Declaration**

```java theme={null}
public interface Parser
```

Interface to define the methods of a parser. Defined after-the-fact from the existing PHXFileParser with the intent to be useful for PHXXMLParser.

## Nested Class Summary

| Modifier and Type | Interface and Description |
| - | - |
| `static class` | `Parser.Mode` File-access mode. Moved to type-safe enum from legacy integer constants |

## Method Summary

| Modifier and Type | Method and Description |
| - | - |
| `void` | `close()` Close the parser |
| `void` | `writeTo(java.io.OutputStreamWriter fw)` Write any changes to the output stream |

## Method Detail

### writeTo

```java theme={null}
void writeTo(java.io.OutputStreamWriter fw)
      throws java.io.IOException
```

Write any changes to the output stream

**Throws:**

* `java.io.IOException`

### close

```java theme={null}
void close()
```

Close the parser
