mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-28 12:36:09 +00:00
Added some javadoc.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -29,7 +29,7 @@ import java.io.OutputStream;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* AMF0 output stream.
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class Amf0OutputStream extends OutputStream {
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package com.jpexs.decompiler.flash.importers.svg;
|
||||
|
||||
/**
|
||||
*
|
||||
* SVG image rendering.
|
||||
* @author JPEXS
|
||||
*/
|
||||
public enum SvgImageRendering {
|
||||
|
||||
Reference in New Issue
Block a user