22 package com.realtime.crossfire.jxclient.skin.io;
24 import java.io.IOException;
25 import org.jetbrains.annotations.NotNull;
37 private final String[]
args;
48 public Args(@NotNull
final String[] args) {
49 this.args = args.clone();
58 public String
get()
throws IOException {
61 }
catch (
final ArrayIndexOutOfBoundsException ignored) {
62 throw new IOException(
"missing argument");
81 return index < args.length;
String getPrev()
Returns the current argument.
boolean hasMore()
Returns whether more arguments exist.
int index
The current index into args.
final String [] args
The string arguments.
Args(@NotNull final String[] args)
Creates a new instance.