RamStringB64Extensible Interface

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

OVERVIEW PACKAGE CLASS TREE DEPRECATED INDEX HELP

PREV CLASS NEXT CLASS FRAMES NO FRAMES ALL CLASSES


SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

jakarta.servlet
Interface RamStringB64Extensible

All Known Implementing Classes:


RAMfileB64ExtensibleArray

public interface RamStringB64Extensible

( Written by Mr Samuel A Marhant , nicephotog@gmail.com , nicephotog@yahoo.com.au Sydney NSW Australia, Wednesday, 09-12-20
17:44:59 GMT 2020-12-09T09:41:59.549Z )
The RamStringB64Extensible interface allows files for Base 64 encryption to be loaded as String, removed or replaced on a variable
sized array whenever required.
This interface is obtained through the Interface RamStringB64 in this same package.
Example:
RamStringB64 r64 = request.getServletContext().getContext("/RAMFileLoader").getRamStringB64Instance(); // cross context from
another running app to /RAMFileLoader application
RamStringB64Extensible razstex = r64.getRAMStringB64ExtInterface();
RamStringB64 r64 = request.getServletContext().getRamStringB64Instance(); // from within the running app to its own instance
RamStringB64Extensible razstex = r64.getRAMStringB64ExtInterface();

Method Summary

All Methods Instance Methods Abstract Methods


Modifier and Type Method and Description
java.lang.String getB64CanonicalFileName(java.lang.String keyname)

Obtains the full length path filename of the array element's file.

long getB64EncodedByteLength(java.lang.String keyname)

Returns a long of the number of bytes total in the encrypted stored file String.

long getB64FileByteLength(java.lang.String keyname)

Returns a long of the file size of the origin file that loaded the encrypted String.

java.lang.String getB64SimpleFileName(java.lang.String keyname)

File name only the element came from.

int getB64StoreMapArrayLength()

The number of elements stored on the array.

long getB64StringElementLength(java.lang.String keyname)

The character length of the array stored element base 64 String.

java.lang.String getFileB64Bytes(java.lang.String keyname)

This is the method of obtaining the base 64 crypted String element from the array for use
for (SMTP attachment or IMG tag ... )

long getTotalBytesGC()

NOT REQUIRED FOR USE. (convenient method of passing Garbage Collector information for
System GC clean up)
boolean hasNamedB64ElementKey(java.lang.String keyname)

Checks if an elements keyname is present on the array.

java.util.Set<java.lang.String> keysOfB64Array()
Obtains the current keys of the array as a Set object.

void loadB64OntoExtByteArray(java.lang.String keyname,


java.io.File newfile, boolean urlsafe)
load from a file from the map array
java.lang.String keyname, the unique identifier name
java.io.File newfile, the java.io.File object to obtain the information to store
boolean urlsafe the base 64 encryption type , "false" is not urlsafe

void putB64ByteFile(byte[] byp, java.lang.String keyname,


java.io.File newfile, boolean urlsafe)
Put a file on the map array
byte[] byp, the file bytes (before any cription or editing)
java.lang.String keyname, the unique identifier name
java.io.File newfile, the "origin" java.io.File object to obtain the information to store
boolean urlsafe the base 64 encryption type , "false" is not urlsafe

void removeB64LoadedFile(java.lang.String keyname)

Removes the entry from the array.

void replaceB64LoadedFile(java.lang.String keyname, java.io.File newfile,


boolean urlsafe)
Replace a file on the map array
java.lang.String keyname, the unique identifier name
java.io.File newfile, the "origin" java.io.File object to obtain the information to store
boolean urlsafe the base 64 encryption type , "false" is not urlsafe

Method Detail

getTotalBytesGC

long getTotalBytesGC()

replaceB64LoadedFile

void replaceB64LoadedFile(java.lang.String keyname,


java.io.File newfile,
boolean urlsafe)

removeB64LoadedFile

void removeB64LoadedFile(java.lang.String keyname)

putB64ByteFile

void putB64ByteFile(byte[] byp,


java.lang.String keyname,
java.io.File newfile,
boolean urlsafe)
loadB64OntoExtByteArray

void loadB64OntoExtByteArray(java.lang.String keyname,


java.io.File newfile,
boolean urlsafe)

getFileB64Bytes

java.lang.String getFileB64Bytes(java.lang.String keyname)

getB64FileByteLength

long getB64FileByteLength(java.lang.String keyname)

getB64StringElementLength

long getB64StringElementLength(java.lang.String keyname)

getB64EncodedByteLength

long getB64EncodedByteLength(java.lang.String keyname)

getB64StoreMapArrayLength

int getB64StoreMapArrayLength()

getB64SimpleFileName

java.lang.String getB64SimpleFileName(java.lang.String keyname)


throws java.io.IOException
Throws:
java.io.IOException

getB64CanonicalFileName

java.lang.String getB64CanonicalFileName(java.lang.String keyname)


throws java.io.IOException
Throws:
java.io.IOException

hasNamedB64ElementKey

boolean hasNamedB64ElementKey(java.lang.String keyname)

keysOfB64Array

java.util.Set<java.lang.String> keysOfB64Array()

OVERVIEW PACKAGE CLASS TREE DEPRECATED INDEX HELP

PREV CLASS NEXT CLASS FRAMES NO FRAMES ALL CLASSES


SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

You might also like