@MinDoc(copyright="Copyright 1997 - 2009, 2015 A. Weinert", author="Albrecht Weinert", version="V.65", lastModified="3.06.2024", usage="start as Java application (-? for help)", purpose="copy file or URL to file") public class UCopy extends App
ComVar
.FS
).App
inheritors) applications this may be done by command line or
— with more comfort — by providing an extra .properties
file.manipContent(String)
that will be intervened between
reading and writing if textManip
is not empty. If it is
"eclipseDictionary" this class' implementation of
manipContent(String)
will UCopy
belongs (as integral part)
a .properties file named
UCopy.properties.
It's part of the documentation.ComVar.Impl
Modifier and Type | Field and Description |
---|---|
String |
destination
Name of destination file or directory.
|
String |
inEncoding
The input's (text) encoding.
|
String |
name
User name with password (name:passw).
|
String |
outEncoding
The output's (text) encoding.
|
String |
proxyHost
Name of the proxy server.
|
String |
proxyPort
Port of the proxy server..
|
boolean |
proxySet
Use a proxy server when reading from URLs.
|
String |
source
Name of source file or source URL.
|
String |
textManip
Denomination of a text manipulation to be done while copying.
|
ano, appBase, appIO, appStartTime, appStartTimeMS, args, argsOrig, bgColor, err, fullClassName, help, icon, log, mainThread, myClass, myFrame, out, outMode, packName, prop, retCode, runFlag, shortClassName, title, verbose, verbosity
AUTHOR, BLANK_STRING, cons, CONSOL_ENCODING, COPYRIGHT, D, D_NaN, D_NegInf, D_PosInf, EMPTY_INT_A, EMPTY_STRING, FILE_ENCODING, FRW_CLLD, FS, FSS, H, hasCons, HOST_IP, HOST_IPv4, HOST_NAME, INIT_ERROR, JAR_ENCODING, JH, JOB_DONE_OK, JRL, LOG_OUT_ERROR, M, MAIN_THREAD_EXC, NO_BYTES, NO_CLASSES, NO_DOUBLES, NO_OBJECTS, NO_PARS_ERROR, NO_STRINGS, NOT_WINDOWS, ON_PI, ONE_DAY, ONE_HOUR, ONE_LEAP_YEAR, ONE_MINUTE, ONE_SECOND, ONE_WEEK, ONE_YEAR, OS, PROG_NAME, PROG_SHORT, PS, RUNTIME, S, SHY, UD, UL, UL_UR_da, UR
ILLEGAL_TYPE, ILLEGAL_VALUE, NO_ATTRIBUTE, NO_KNOWN_ATTRIBUTE, NO_VALUE, OK, retVtext
Modifier and Type | Method and Description |
---|---|
int |
doIt()
Working method of UCopy.
|
static void |
main(String[] args)
Start method of UCopy.
|
protected String |
manipContent(String content)
Optional text manipulation method.
|
actionPerformed, allowNoPropertiesFile, clientOrder, condHelpLog, connect, errMeld, errMeld, errorExit, errorExit, errorText, extraPropertiesFile, formMessage, formMessage, formMessage, getAbout, getAboutText, getActTime, getAppLogger, getAppStartTime, getArgs, getAuthor, getCopyright, getDbLogger, getExecTimeMs, getExecTimeMsL, getExecTimeString, getHelp, getHelpText, getIcon, getLanguage, getLogHandler, getMessageComponent, getMessageComponentsLength, getMyFrame, getName, getNameWithVersDate, getOutMode, getProp, getPurpose, getStartTime, getStateString, getTheCloser, getTitle, getUsage, getVerbose, getVerbosity, getVersDate, go, go, go, haveIcon, isDebug, isHelp, isHelpLog, isNormal, isRunFlag, isSilent, isTest, isVerbose, logVerbose, logVerbose, makeStatusTextEnd, makeStatusTextStart, messageFormat, normalExit, parsePartial, performeAction, queueAction, regAsStdMBean, repExc, setAboutText, setAttribute, setAttribute, setAuthor, setBgColor, setCodePages, setCopyright, setHelp, setLogOut2, setName, setOutMode, setOutMode, setPurpose, setTitle, setUsage, setVerbose, setVerbose, setVerbosity, setVerbosity, setVersDate, stop, threeLineEndMsg, toString, twoLineEndMsg, twoLineStartMsg, valueLang, valueLang, wakeMainThread
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
retVtext
public String source
public String destination
public String textManip
manipContent(String)
,
inEncoding
,
outEncoding
public boolean proxySet
public String name
public String inEncoding
public String outEncoding
public static void main(String[] args)
args
- command line argumentsdoIt()
,
App.go(String[])
protected String manipContent(String content)
textManip
is not empty this method is called
between reading and writing the text content. It may do any optional
content manipulation.textManip
is "eclipseDictionary".textManip
this implementation will
return the content
unchanged.content
- the original text content, null will return the
empty String, no matter what textManip
sayspublic int doIt()
doIt
in class App
main(String[])
,
App.go(String[])