Interface ToolInput
- All Known Implementing Classes:
ByteInput, FileInput, StdinInput, StreamInput, StringInput
public interface ToolInput
This class is a generic interface, symbolising any input for jdis/jasm/jdec/jcoder.
Asmtools as application internally uses FileInput and StdinInput.
UnitTests for asmtools uses mainly StringInput for assemblers and ByteInput for disassemblers.
String/Byte/Stream inputs can be used as any 3rd part code which do not need files, aka IDE, instrumentation or similar.
The interface methods goes in favor of asmtools, and for details and help see individual implementations
-
Method Summary
Modifier and TypeMethodDescriptiongetDataInputStream(Optional<Environment> logger) default MessageDigestgetName()default intgetSize()default booleandefault ToolInputsetDetailedInput(boolean value)
-
Method Details
-
getName
String getName() -
getDataInputStream
DataInputStream getDataInputStream(Optional<Environment> logger) throws URISyntaxException, IOException - Throws:
URISyntaxExceptionIOException
-
readAllLines
- Throws:
IOException
-
isDetailedInput
default boolean isDetailedInput() -
setDetailedInput
-
getMessageDigest
-
getSize
default int getSize()
-