# io.github.libtmux.format.RowFormat.RowFormat.rows

- **Module:** io.github.libtmux.format.RowFormat.RowFormat
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/c3517519ee799428a809ce6deb1708c8be289cd1/libtmux/src/main/java/io/github/libtmux/format/RowFormat.java#L145
- **Page:** https://libtmux.org/reference/java/io-github-libtmux-format-rowformat-rowformat-rows/

```
io.github.libtmux.format.RowFormat.RowFormat.rows(lines: List<String>) -> List<Row>
```

Reads a whole listing back into rows.

<p>tmux ends a row with a newline and frames it no other way, so a listing's lines are not its
rows: a value carrying a newline arrives as several. A working directory may contain one, and
anything running in a pane may change into it, so this is caller-reachable rather than
theoretical. A row is closed by carrying every separator, not by the line ending.

## Parameters

- `lines` (List<String>) — the listing as tmux printed it

## Raises

- `TmuxFormatException` — if the listing ends mid-row, or a row does not have exactly the expected number of fields
