Added some javadoc.

This commit is contained in:
Jindra Petřík
2025-06-10 20:45:02 +02:00
parent 2a97dfb314
commit 4b23a7872b
4 changed files with 45 additions and 2 deletions

View File

@@ -56,6 +56,10 @@ public class Amf0InputStream extends InputStream {
*/
public DumpInfo dumpInfo;
/**
* Constructor
* @param is Input stream
*/
public Amf0InputStream(MemoryInputStream is) {
this.is = is;
}
@@ -68,6 +72,12 @@ public class Amf0InputStream extends InputStream {
return ret;
}
/**
* Reads bytes from the stream.
* @param count Count of bytes
* @return Array of bytes
* @throws IOException On I/O error
*/
public byte[] readBytes(int count) throws IOException {
DataInputStream dais = new DataInputStream(is);
byte[] ret = new byte[count];
@@ -485,12 +495,22 @@ public class Amf0InputStream extends InputStream {
return value;
}
/**
* Populates complex objects.
* @param values Values
* @param result Result
*/
public void populateComplexObjects(List<Object> values, List<Object> result) {
for (Object value : values) {
populateComplexObjects(value, result);
}
}
/**
* Populates complex objects.
* @param value Value
* @param result Result
*/
public void populateComplexObjects(Object value, List<Object> result) {
if (result.contains(value)) {
return;

View File

@@ -29,7 +29,7 @@ import java.io.OutputStream;
import java.util.List;
/**
*
* AMF0 output stream.
* @author JPEXS
*/
public class Amf0OutputStream extends OutputStream {

View File

@@ -41,6 +41,19 @@ import java.util.Map;
*/
public class Amf0Exporter {
/**
* Constructor.
*/
public Amf0Exporter() {
}
/**
* Converts AMF map to string.
* @param map Map
* @param level Level
* @param newLine Newline char
* @return String result
*/
public static String amfMapToString(
Map<String, Object> map,
int level,
@@ -81,6 +94,16 @@ public class Amf0Exporter {
return sb.toString();
}
/**
* Converts AMF to string
* @param value Value
* @param level Level
* @param newLine New line
* @param processedObjects Processed objects
* @param referenceCount Reference count
* @param objectAlias Object alias
* @return String result
*/
public static String amfToString(
Object value,
int level,

View File

@@ -17,7 +17,7 @@
package com.jpexs.decompiler.flash.importers.svg;
/**
*
* SVG image rendering.
* @author JPEXS
*/
public enum SvgImageRendering {