Class MetaserverEntryParser
- java.lang.Object
-
- com.realtime.crossfire.jxclient.metaserver.MetaserverEntryParser
-
public class MetaserverEntryParser extends java.lang.ObjectParser for response lines of metaserver response lines.
-
-
Constructor Summary
Constructors Constructor Description MetaserverEntryParser()Creates a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @NotNull java.lang.Stringformat(@NotNull MetaserverEntry entry)Formats a metaserver entry that returns the metaserver entry when parse withparseEntry(CharSequence).static @Nullable MetaserverEntryparseEntry(@NotNull java.lang.CharSequence entry)Parses a metaserver response line.@Nullable MetaserverEntryparseLine(@NotNull java.lang.String line)Parses a metaserver response line.
-
-
-
Method Detail
-
parseEntry
@Nullable public static @Nullable MetaserverEntry parseEntry(@NotNull @NotNull java.lang.CharSequence entry)
Parses a metaserver response line.- Parameters:
entry- the response line to parse- Returns:
- the metaserver entry or
nullif the line is invalid
-
parseLine
@Nullable public @Nullable MetaserverEntry parseLine(@NotNull @NotNull java.lang.String line) throws java.io.IOException
Parses a metaserver response line.- Parameters:
line- the response line to parse- Returns:
- the metaserver entry, or
nullif the line is invalid - Throws:
java.io.IOException- if the response line is invalid
-
format
@NotNull public static @NotNull java.lang.String format(@NotNull @NotNull MetaserverEntry entry)Formats a metaserver entry that returns the metaserver entry when parse withparseEntry(CharSequence).- Parameters:
entry- the metaserver entry to format- Returns:
- the formatted entry
-
-