Package cronapi.io
Class Operations
- java.lang.Object
-
- cronapi.io.Operations
-
public class Operations extends Object
Classe que representa ...- Since:
- 2017-03-28
- Version:
- 1.0
- Author:
- Usuário de Teste
-
-
Constructor Summary
Constructors Constructor Description Operations()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VarcompressImage(Var input, Var quality)static VarcropImage(Var input, Var width, Var height)static VardownloadFileFromUrl(Var urlAddress, Var path, Var name, Var extension)Download Arquivo a partir de URLstatic VardownloadUrltoFile(Var urlAddress, Var file)static VarfileAppClassesDir()Diretorio de classes da aplicaçãostatic VarfileAppDir()Diretorio temporário da aplicaçãostatic voidfileAppend(Var outPut, Var content)Adicionar conteúdo a arquivostatic VarfileAppReclycleDir()Diretorio temporário da aplicação reciclávelstatic VarfileCanRead(Var path)Pode Ler?static VarfileCanWrite(Var path)Pode Escrever?static voidfileClose(Var input)Fechar o arquivostatic voidfileCopy(Var pathFrom, Var pathTo)Copiar Arquivostatic voidfileCreate(Var path)Criar Novo Arquivostatic voidfileCreateWithByteArray(Var path, Var byteArray)Gerar Arquivo através de bytestatic voidfileDownload(Var varFile)Download de arquivostatic voidfileDownload(Var varFile, Var varLabel)static VarfileExists(Var path)Existe o Arquivo?static voidfileFlush(Var input)Limpar o arquivostatic VarfileGetNumberOfLines(Var path)Obter Total de Linhas do Arquivostatic VarfileGetParent(Var path)Obter Pai do Arquivostatic VarfileGetSize(Var input)Obter o tamanho do arquivostatic VarfileMD5(Var path)MD5 do Arquivostatic VarfileMove(Var pathFrom, Var pathTo)Mover Arquivostatic VarfileOpenToRead(Var url)Abrir arquivo para leiturastatic VarfileOpenToWrite(Var url, Var append)Abrir arquivo para escritastatic VarfileRead(Var input, Var size)Ler conteúdo do arquivostatic VarfileReadAll(Var input)Ler todo contéudo do arquivosstatic VarfileReadAllToBytes(Var input)Ler todo conteudo do arquivostatic VarfileReadContentWithCharset(Var finp, Var charsetSelected)Ler Todo Arquivo Definindo Charsetstatic VarfileRemove(Var path)Remover Arquivostatic VarfileRemoveAllFolder(Var path)Remover Pasta de Arquivosstatic VarfileRename(Var path, Var name)Renomear Arquivostatic VarfileSeparator()static VarfileTempDir()Diretorio temporário da aplicaçãostatic VarfolderCreate(Var path, Var folderName)Criar nova pastastatic VargetFileExtension(Var path)static VargetFileName(Var path)static VargetParent(Var path)static VarisDirectory(Var path)É diretorio?static VarisFileEoF(Var input)Checar se é final do arquivostatic VarlistFiles(Var path, Var type)static VarloadPrivateKeyFile(Var privateKeyFile)static VarloadPublicKeyFile(Var publicKeyFile)static voidreadBytesFromStream(Var input, Var size, Callback callback)static voidreadLine(Var input, Callback callback)Ler uma linha do arquivostatic VarresizeImage(Var input, Var width, Var height)static voidresolveAuthentication(String urlAddress, URLConnection urlConnection)static VarrotateImage(Var input, Var rotation)static VarsignFile(Var file, Var privateKey)static voidstartDownload(Var content, Var nameFile)Iniciar downloadstatic VartoFile(Var folder, Var fileName)static voidunZip(Var zippedFile, Var destFolder)Descompactar arquivo zipstatic VarverifySignature(Var file, Var publicKey)static voidzipFile(Var sourceFiles, Var destFolder, Var zipFileName)
-
-
-
Method Detail
-
folderCreate
public static final Var folderCreate(Var path, Var folderName) throws Exception
Criar nova pasta- Throws:
Exception
-
fileMD5
public static final Var fileMD5(Var path) throws Exception
MD5 do Arquivo- Throws:
Exception
-
fileRemoveAllFolder
public static final Var fileRemoveAllFolder(Var path) throws Exception
Remover Pasta de Arquivos- Throws:
Exception
-
fileCanRead
public static final Var fileCanRead(Var path) throws Exception
Pode Ler?- Throws:
Exception
-
fileCanWrite
public static final Var fileCanWrite(Var path) throws Exception
Pode Escrever?- Throws:
Exception
-
fileCreate
public static final void fileCreate(Var path) throws Exception
Criar Novo Arquivo- Throws:
Exception
-
fileRemove
public static final Var fileRemove(Var path) throws Exception
Remover Arquivo- Throws:
Exception
-
fileExists
public static final Var fileExists(Var path) throws Exception
Existe o Arquivo?- Throws:
Exception
-
fileCopy
public static final void fileCopy(Var pathFrom, Var pathTo) throws Exception
Copiar Arquivo- Throws:
Exception
-
fileGetParent
public static final Var fileGetParent(Var path) throws Exception
Obter Pai do Arquivo- Throws:
Exception
-
fileRename
public static final Var fileRename(Var path, Var name) throws Exception
Renomear Arquivo- Throws:
Exception
-
fileMove
public static final Var fileMove(Var pathFrom, Var pathTo) throws Exception
Mover Arquivo- Throws:
Exception
-
fileOpenToWrite
public static final Var fileOpenToWrite(Var url, Var append) throws Exception
Abrir arquivo para escrita- Throws:
Exception
-
fileOpenToRead
public static final Var fileOpenToRead(Var url) throws Exception
Abrir arquivo para leitura- Throws:
Exception
-
fileAppend
public static final void fileAppend(Var outPut, Var content) throws Exception
Adicionar conteúdo a arquivo- Throws:
Exception
-
fileRead
public static final Var fileRead(Var input, Var size) throws Exception
Ler conteúdo do arquivo- Throws:
Exception
-
fileReadAll
public static final Var fileReadAll(Var input) throws Exception
Ler todo contéudo do arquivos- Throws:
Exception
-
readLine
public static final void readLine(Var input, Callback callback) throws Exception
Ler uma linha do arquivo- Throws:
Exception
-
readBytesFromStream
public static void readBytesFromStream(Var input, Var size, Callback callback) throws Exception
- Throws:
Exception
-
fileFlush
public static final void fileFlush(Var input) throws Exception
Limpar o arquivo- Throws:
Exception
-
fileClose
public static final void fileClose(Var input) throws Exception
Fechar o arquivo- Throws:
Exception
-
fileTempDir
public static final Var fileTempDir() throws Exception
Diretorio temporário da aplicação- Throws:
Exception
-
fileAppDir
public static final Var fileAppDir() throws Exception
Diretorio temporário da aplicação- Throws:
Exception
-
fileAppReclycleDir
public static final Var fileAppReclycleDir() throws Exception
Diretorio temporário da aplicação reciclável- Throws:
Exception
-
fileAppClassesDir
public static final Var fileAppClassesDir() throws Exception
Diretorio de classes da aplicação- Throws:
Exception
-
fileDownload
public static final void fileDownload(Var varFile) throws Exception
Download de arquivo- Throws:
Exception
-
fileDownload
public static final void fileDownload(Var varFile, Var varLabel) throws Exception
- Throws:
Exception
-
startDownload
public static final void startDownload(Var content, Var nameFile) throws Exception
Iniciar download- Throws:
Exception
-
fileReadAllToBytes
public static final Var fileReadAllToBytes(Var input) throws Exception
Ler todo conteudo do arquivo- Throws:
Exception
-
isFileEoF
public static final Var isFileEoF(Var input) throws Exception
Checar se é final do arquivo- Throws:
Exception
-
fileGetSize
public static final Var fileGetSize(Var input) throws Exception
Obter o tamanho do arquivo- Throws:
Exception
-
fileGetNumberOfLines
public static final Var fileGetNumberOfLines(Var path) throws Exception
Obter Total de Linhas do Arquivo- Throws:
Exception
-
downloadFileFromUrl
public static final Var downloadFileFromUrl(Var urlAddress, Var path, Var name, Var extension)
Download Arquivo a partir de URL
-
resolveAuthentication
public static void resolveAuthentication(String urlAddress, URLConnection urlConnection)
-
downloadUrltoFile
public static final Var downloadUrltoFile(Var urlAddress, Var file) throws Exception
- Throws:
Exception
-
fileReadContentWithCharset
public static final Var fileReadContentWithCharset(Var finp, Var charsetSelected) throws Exception
Ler Todo Arquivo Definindo Charset- Throws:
Exception
-
unZip
public static void unZip(Var zippedFile, Var destFolder) throws Exception
Descompactar arquivo zip- Throws:
Exception
-
zipFile
public static void zipFile(Var sourceFiles, Var destFolder, Var zipFileName) throws Exception
- Throws:
Exception
-
fileSeparator
public static final Var fileSeparator()
-
loadPrivateKeyFile
public static Var loadPrivateKeyFile(Var privateKeyFile) throws NoSuchAlgorithmException, IOException, InvalidKeySpecException
-
loadPublicKeyFile
public static Var loadPublicKeyFile(Var publicKeyFile) throws NoSuchAlgorithmException, IOException, InvalidKeySpecException
-
signFile
public static Var signFile(Var file, Var privateKey) throws InvalidKeyException, SignatureException, NoSuchAlgorithmException, IOException
-
verifySignature
public static Var verifySignature(Var file, Var publicKey) throws InvalidKeyException, SignatureException, NoSuchAlgorithmException
-
fileCreateWithByteArray
public static final void fileCreateWithByteArray(Var path, Var byteArray) throws Exception
Gerar Arquivo através de byte- Throws:
Exception
-
cropImage
public static Var cropImage(Var input, Var width, Var height) throws Exception
- Throws:
Exception
-
rotateImage
public static Var rotateImage(Var input, Var rotation) throws Exception
- Throws:
Exception
-
compressImage
public static Var compressImage(Var input, Var quality) throws Exception
- Throws:
Exception
-
-