public class MetaserverEntryParser
extends java.lang.Object
Constructor and Description |
---|
MetaserverEntryParser()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
static @NotNull java.lang.String |
format(@NotNull MetaserverEntry entry)
Formats a metaserver entry that returns the metaserver entry when parse
with
parseEntry(CharSequence) . |
static @Nullable MetaserverEntry |
parseEntry(@NotNull java.lang.CharSequence entry)
Parses a metaserver response line.
|
@Nullable MetaserverEntry |
parseLine(@NotNull java.lang.String line)
Parses a metaserver response line.
|
@Nullable public static @Nullable MetaserverEntry parseEntry(@NotNull @NotNull java.lang.CharSequence entry)
entry
- the response line to parsenull
if the line is invalid@Nullable public @Nullable MetaserverEntry parseLine(@NotNull @NotNull java.lang.String line) throws java.io.IOException
line
- the response line to parsenull
if the line is invalidjava.io.IOException
- if the response line is invalid@NotNull public static @NotNull java.lang.String format(@NotNull @NotNull MetaserverEntry entry)
parseEntry(CharSequence)
.entry
- the metaserver entry to format