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

# Class: PHXMonitorableStream.MonitorWriter

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

**Class Hierarchy**

```text theme={null}
↳ java.lang.Object
  ↳ java.io.Writer
    ↳ com.phoenix_int.aserver.monitors.PHXMonitorableStream.MonitorWriter
```

**All Implemented Interfaces**

* `java.io.Closeable`, `java.io.Flushable`, `java.lang.Appendable`, `java.lang.AutoCloseable`

**Enclosing class:**

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

***

**Declaration**

```java theme={null}
public class PHXMonitorableStream.MonitorWriter
extends java.io.Writer
```

## Field Summary

### Fields inherited from class java.io.Writer

`lock`

## Method Summary

| Modifier and Type | Method and Description |
| - | - |
| `void` | `close()` |
| `void` | `flush()` |
| `void` | `write(char[] buf, int pos, int len)` |

### Methods inherited from class java.io.Writer

`append, append, append, write, write, write, write`

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

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Method Detail

### flush

```java theme={null}
public void flush()
```

**Specified by:**

* `flush` in interface `java.io.Flushable`
* `flush` in class `java.io.Writer`

### close

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

**Specified by:**

* `close` in interface `java.io.Closeable`
* `close` in interface `java.lang.AutoCloseable`
* `close` in class `java.io.Writer`

### write

```java theme={null}
public void write(char[] buf, 
                  int pos, 
                  int len)
```

**Specified by:**

* `write` in class `java.io.Writer`
