home *** CD-ROM | disk | FTP | other *** search
- vec The FIP Manual vec
-
- NAME
- vec, vdc - Ville's encoder/decoder
-
- SYNOPSIS
- vec [<options>] [<files>]
- vdc [<options>] [<files>]
-
- DESCRIPTION
- Vec is used to convert binary data into printable ASCII characters
- for transmission trough networks. Vdc decodes files created by vec
- back into their original form. Vdc can also decode files encoded by
- uuencode, btoa or fipencode and vec is able to create files which can
- be decoded by uudecode.
-
- The programs process files given on command line or if no files are
- given, then the standard input stream is processed. If several files
- are encoded by one call to vec, they will be stored in single output
- file, which will then be split by vdc. By default vec outputs via
- standard output stream and vdc creates files with the original names.
-
- If the given file names contain wildcard patterns, vec and vdc may or
- may not expand them. This is system dependent feature. Amiga version
- does it under AmigaOS 2.04 or newer.
-
- OPTIONS
- -0 Select encoding method 0. Vec only - vdc checks its input to
- determine the right method.
-
- -1 Select encoding method 1. Vec only.
-
- -2 Select encoding method 2. Vec only.
-
- -3 Select encoding method 3. Vec only.
-
- -a Select ASCII escape encoding method. Vec only.
-
- -A <file_name>
- Append output to named file.
-
- -b <number>
- Select the I/O buffer size in bytes. Memory usage will be doubly
- affected because there are two buffers.
-
- -d Decode. Vec and vdc are the same executable binary and normally
- the program name is checked to determine which operation is
- desired. This option can be used to override the automatic
- operation selection.
-
- -D Select the new work directory.
-
- -e Encode. See above.
-
- -f Output full-length lines when using escape encoding methods. Vec
- only.
-
- -i Select ISO 8859-1 escape encoding method. Vec only.
-
- -l Write those input lines, which do not contain encoded data to
- standard output. Decoded files will be replaced by one line
- indicator, which contains file name. Do not use this option
- together with -p option! Vdc only.
- vec The FIP Manual vec
-
- -L Same as above, but don't write indicator lines.
-
- -N Do not store or restore file mode flags.
-
- -n <file_name>
- Override the name of encoded file. When the file is decoded, this
- name will be used. If you are encoding standard input and you do
- not use this option, the name `noname' is used. Vec only.
-
- -o <file_name>
- Output to named file. Overwrite existing file. If used on vdc,
- file mode flag and file name information will be ignored and all
- encoded files will be concatenated to single file.
-
- -p Output to standard output. See above. Default for vec.
-
- -q Quick mode. Checksums are not calculated, stored or checked.
-
- -r Use CR+LF pairs as newlines. By default only LF is used.
-
- -R Reset uuencode table after each decoded file. Use this option, if
- your input file consists of uuencoded files from different
- sources. If you don't use this option, the table from one source
- may ruin the decoding of following tableless files from different
- source. Table is always reset between different input files. Vdc
- only.
-
- -s Silent mode. File names are not displayed.
-
- -t Output TABs literally when using escape encoding methods. Vec
- only.
-
- -u Select uuencode compatible encoding method. Vec only.
-
- -w <number>
- Select the width of the output lines. No effect on uuencode
- method. Vec only.
-
- -x Select hexdump encoding method. Vec only.
-
- - Option delimiter. All parameters after it are considered file
- names. This is how you can specify file names starting with dash.
-
- ENCODING METHODS
- Vec can use eight different methods to encode data into ASCII char-
- acters. Vdc can decode all these methods and two extra.
-
- Vec method 0
- Fast but inefficient. Data will expand 35% and output will
- contain only 7 bit ASCII characters: codes 33 and 36 through 99.
-
- Vec method 1
- A bit slower but more compact. Data will expand 24.6% and output
- will still contain only 7 bit ASCII characters: codes 33 and 36
- through 126.
-
- Vec method 2
- Fast. Requires 8 bit transmission. Data will expand 15.7% and
- output will contain characters which have high bit set. Char-
- acters will be printable in ISO 8859-1 or MS-DOS character sets:
- codes 33, 36 through 126 and 161 through 197.
- vec The FIP Manual vec
-
- Vec method 3
- Slower. Very compact. Requires 8 bit transmission. Data will
- expand only 8% and output will contain characters which have high
- bit set. Characters will be printable in ISO 8859-1 or MS-DOS
- character sets: codes 33, 36 through 126 and 161 through 251.
-
- Vec method a - ASCII escape method
- Outputs printable characters literally and escapes the other
- characters. Medium speed. Very efficient on text files, but quite
- inefficient on binary data. Output will contain only 7 bit ASCII
- characters. Data will expand about 66% for random input, almost
- zero for average text input. Text files are readable in encoded
- form.
-
- Vec method i - ISO 8859-1 escape method
- Outputs printable characters literally and escapes the other
- characters. Medium speed. Very efficient on text files, but quite
- inefficient on binary data. Output will contain characters, which
- have high bit set. Characters will be printable in ISO 8859-1 or
- MS-DOS character sets. Data will expand about 15% for random in-
- put, almost zero for average text input. Text files are readable
- in encoded form.
-
- Vec method x - hexdump method
- Very slow and very inefficient. Data will expand 102.5% and out-
- put will contain hexadecimal digits. Header will contain same
- characters as method 0. Originally implemented in testing
- purposes, but may be useful in some cases.
-
- Uuencode method
- Very fast and very inefficient. Data will expand 40% and output
- will contain only 7 bit ASCII characters: codes 33 through 96.
- Fully compatible with uuencode and uudecode programs.
-
- Btoa method
- Decode only. Data will expand 25.8% and code contains only 7 bit
- ASCII characters. Compatible with btoa and atob programs.
-
- Fipencode method
- Decode only. Data will expand 15.8% and code contains 8 bit char-
- acters, which are printable in ISO 8859-1 and MS-DOS character
- sets. Compatible with fipencode and fipdecode programs.
-
- Vec methods use CRC16 checksum. Uuencode has primitive line checksums
- and byte count. Btoa and fipencode have their own checksums, but vdc
- doesn't support them.
-
- Expansion percentage for vec methods is calculated here using 80
- character line width.
-
- VERSION
- This manual is written 8th December 1993 for vec version 3.231.
- vec The FIP Manual vec
-
- AUTHOR
- Ville Saari
-
- Address: Tallbergin puistotie 7 B 21
- 00200 Helsinki
- FINLAND
-
- Phone: +358 0 682 2226
-
- Internet: vsaari@garfield.fipnet.fi
-
- If you find bugs in vec, please let me know.
-
- Vec is freely distributable, but if you like it and absolutely want
- to pay me something or give me a yacht or Ferrari or something, then
- do it.
-