io.github.libtmux.Layouts.Layouts.requireSerialized
Java
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go Unavailable
- Java
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- io.github.libtmux.Layouts
- Declared in
- Layouts
- Package
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/Layouts.java
- requireSerialized ( layout : String , running : TmuxVersion ) String
-
Requires an exact layout string rather than a built-in layout name.
The classic form answers "did tmux write this?" by its own checksum, without needing to know what tmux is running. JSON carries nothing equivalent, so the only question left to ask is "could this tmux have written it?" - which is a version, not a parse. Recognising the shape is as far as this goes: a JSON body that passes the shape check but is not real is tmux's own problem to refuse, and it does, safely, on every release that understands the format at all (confirmed against next-3.9: malformed JSON answers an ordinary parse error, never a crash).
- Raises
-
-
IllegalArgumentException – if the string is not a layout tmux wrote
-
UnsupportedTmuxVersionException – if it is JSON-shaped but
runningpredates the format, so it cannot be one this server wrote
-
0 declared, 0 inherited