Class UriLists

java.lang.Object
limn.backend.lwjgl.transfer.UriLists

public final class UriLists extends Object
Files as the text/uri-list of RFC 2483: one file: URI a line, CRLF between.
  • Method Details

    • encode

      public static byte[] encode(List<Path> files)
      Parameters:
      files - the files
      Returns:
      their absolute file: URIs, percent-encoded, each ended by CRLF
    • decode

      public static List<Path> decode(byte[] bytes)
      Parameters:
      bytes - a URI list
      Returns:
      the local files it names; comments, other schemes and what is not a URI are skipped