YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.share.FolderListing Class Reference

The files of one picked folder (not its sub folders): turns the rows a documents provider answered into PickedQueue.Entry values. More...

Collaboration diagram for de.yaacc.share.FolderListing:
Collaboration graph

Classes

class  Result
 
class  Row
 One child of the folder as the provider reports it.
 
interface  RowSource
 Reads the children of the folder, at most maxRows; null when it could not be read. More...
 
interface  UriBuilder
 Builds the uri of a child from its document id; null when it cannot be built. More...
 

Static Public Member Functions

static Result list (RowSource source, UriBuilder uris)
 

Static Public Attributes

static final String MIME_TYPE_DIR = "vnd.android.document/directory"
 The document type of a directory (the value of Document.MIME_TYPE_DIR).
 
static final int MAX_ROWS = 5000
 The most rows read from a folder (the listing of a big folder is slow).
 
static final int MAX_ID_CHARS = 1024
 The longest document id that is kept (a longer one cannot be a real file; the row is dropped).
 
static final int MAX_NAME_CHARS = 1024
 The longest display name that is kept (cut), as for a single picked file.
 

Detailed Description

The files of one picked folder (not its sub folders): turns the rows a documents provider answered into PickedQueue.Entry values.

The query itself (Android) sits behind RowSource, so this logic needs no Android classes. At most MAX_ROWS rows are read, directories are skipped, text of the provider is cleaned.


The documentation for this class was generated from the following file: