Open keyboardr opened 4 years ago
Adds support for creating Mp3Files with FileDescriptors. Fixes #171
Mp3File
FileDescriptor
Since FileDescriptors contain less information than Files or Paths, some caveats are needed:
File
Path
getFilename()
getLastModified()
getLength()
FileWrapper
Thanks for the PR @keyboardr I am not into android programming, anyone who can offer a review here would be very appreciated.
Adds support for creating
Mp3File
s withFileDescriptor
s. Fixes #171Since
FileDescriptor
s contain less information thanFile
s orPath
s, some caveats are needed:Mp3File
s is not supported since the absolute path cannot be verified.getFilename()
andgetLastModified()
will throw an exception.getLength()
is only valid after initialization (shouldn't be an issue for those usingMp3File
, but it is a concern forFileWrapper
).