- java.lang.Object
-
- smartefact.xdg.desktopentry.DesktopEntry
-
public final class DesktopEntry extends Object
XDG desktop entry.Specification: XDG Desktop Entry 1.5
- Author:
- Laurent Pireyn
- See Also:
- XDG Desktop Entry Specification
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDesktopEntry.BlankLineBlankDesktopEntry.Linein a desktop entry.static classDesktopEntry.CommentCommentDesktopEntry.Linein a desktop entry.static classDesktopEntry.EntryEntryDesktopEntry.Linein a desktop entry.static classDesktopEntry.GroupGroup in a desktop entry.static classDesktopEntry.LineLine in a desktop entry.
-
Constructor Summary
Constructors Constructor Description DesktopEntry(@NotNull List<@NotNull DesktopEntry.Line> initialLines, @NotNull List<@NotNull DesktopEntry.Group> groups)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(@Nullable Object object)@NotNull List<@NotNull DesktopEntry.Group>getGroups()@NotNull Map<@NotNull String,@NotNull DesktopEntry.Group>getGroupsByName()inthashCode()static @NotNull DesktopEntryreadFrom(@NotNull InputStream input)@NotNull StringtoString()voidwriteTo(@NotNull OutputStream output)
-
-
-
Constructor Detail
-
DesktopEntry
public DesktopEntry(@NotNull @NotNull List<@NotNull DesktopEntry.Line> initialLines, @NotNull @NotNull List<@NotNull DesktopEntry.Group> groups)
-
-
Method Detail
-
readFrom
@NotNull public static @NotNull DesktopEntry readFrom(@NotNull @NotNull InputStream input) throws IOException
- Throws:
IOException
-
getGroups
@Contract(pure=true) @NotNull public @NotNull List<@NotNull DesktopEntry.Group> getGroups()
-
getGroupsByName
@Contract(pure=true) @NotNull public @NotNull Map<@NotNull String,@NotNull DesktopEntry.Group> getGroupsByName()
-
writeTo
public void writeTo(@NotNull @NotNull OutputStream output) throws IOException
- Throws:
IOException
-
equals
@Contract(value="null -> false", pure=true) public boolean equals(@Nullable @Nullable Object object)
-
-