de.scheisseichfindemalkeinen.importexport
Class ImportIradaTsv
java.lang.Object
de.scheisseichfindemalkeinen.importexport.ImportIradaTsv
public class ImportIradaTsv
- extends java.lang.Object
Class for import tsv-Files created by Irada
Irada: http://www.scheisseichfindemalkeinen.de/page/?loc=irada
Irada is a tool to upload files to imagehosts/filehosts.
A tsv-File is a tab-seperated textfile.
A line looks like this:
Filename Container-URL TimepointOfLastModification
or
Path\Filename Container-URL TimepointOfLastModification
or
Path\Path\Filename Container-URL TimepointOfLastModification
and so on...
Why such a file?
Because when uploading files to Imageshosts, then most of them are
changing the filename. Some of them in way, where it is not possible
to restore the original one in BilderHerunterlader.
An other problem is, that most people has the files sorted in directories
on the harddisk. When uploading only a few files, then that is no problem.
But if someone uploads many files, then the people who are downloading them,
have it then unsorted on the harddisk.
So, with the tsv-Files, BilderHerunterlader can restore the original Filenames
and also the directories.
At the moment the tsv-Files also contains the Timepoint of the last Modification
of the File. This is the only thing, i can change on a file with Java.
I hope there will in the future be a method to change also the Timepoint of Creation
of the File in Java.
At the moment i don't know any other download-program such BilderHerunterlader,
which has support for this tsv-Files nor even such a way to restore this information.
|
Method Summary |
static java.util.Vector<Tsv> |
importTsv(java.io.InputStream is)
Import the tsv-File
Here the argument is an InputStream because in BilderHerunterlader the file
could be imported from a file or an URL. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImportIradaTsv
public ImportIradaTsv()
importTsv
public static java.util.Vector<Tsv> importTsv(java.io.InputStream is)
throws java.io.IOException
- Import the tsv-File
Here the argument is an InputStream because in BilderHerunterlader the file
could be imported from a file or an URL.
- Parameters:
is - InputStream
- Returns:
- Vector containing Tsvs
- Throws:
java.io.IOException