NX01: Migrated warp fault to klass fault
All checks were successful
Run test asserts / Test-Asserts (push) Successful in 51s
All checks were successful
Run test asserts / Test-Asserts (push) Successful in 51s
This commit is contained in:
parent
99bf95a82a
commit
11084d3d94
125 changed files with 578 additions and 1363 deletions
|
|
@ -28,6 +28,10 @@
|
|||
<groupId>love.distributedrebirth.nx01</groupId>
|
||||
<artifactId>nx01-jpp1-klass-cake</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>love.distributedrebirth.nx01</groupId>
|
||||
<artifactId>nx01-jpp1-klass-fault</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>love.distributedrebirth.nx01</groupId>
|
||||
<artifactId>nx01-x4o-fc18</artifactId>
|
||||
|
|
|
|||
|
|
@ -37,10 +37,10 @@ import ᒢᐩᐩ.ᔆʸᔆᐪᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAu
|
|||
|
||||
@DuytsDocAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
||||
public class BabelTest {
|
||||
// ᒢᣘᐧᐧ // jpp0 = nether + land + collections2
|
||||
// ᒢᣘᐧᣟ // jpp1 = klass + number
|
||||
// ᒢᣘᣟᐧ // jpp2 = ~jpp-base
|
||||
// ᒢᣘᣟᣟ // jpp3 = jmx + other-optional
|
||||
// ᒢᣘᐧᐧ // jpp0 = nether-tone + nether-dial-* + kaas + collections2
|
||||
// ᒢᣘᐧᣟ // jpp1 = klass-fault + klass-cake + number
|
||||
// ᒢᣘᣟᐧ // jpp2 = ~jpp-base: warp-manifestor + warp-core
|
||||
// ᒢᣘᣟᣟ // jpp3 = ~optional: enter-jmx + enter-zillala
|
||||
// ᒢᐩᐩ.ᣕᓫᐪᑋᓫᣗ.ᐪᐤᣕᓫ.ᔆᒼᣗᑊᣖᐪ (2^6+2^6+2^6+2^9+2^6+2^6+2^6+2^6+2^6+2^6+2^9 = x interface + mutex + etc)
|
||||
// ᒢᐩᐩ.ᣕᓫᐪᑋᓫᣗ.ᐪᐤᣕᓫ.ᒼᑋᐤᣗᑊᐣ // implement as group marker interface to readout relative distance to marker root
|
||||
// ᒢᐩᐩ.ᣕᓫᐪᑋᓫᣗ.ᒄᑊᣔᒻ.ᒻᑊᣕᕐᓑᣔ (#interfaces; ~31K + file groupings)
|
||||
|
|
@ -50,10 +50,6 @@ public class BabelTest {
|
|||
// ᒢᐩᐩ.ᑊᑉᒻᣔᔆᔆ.ᒻᐤᣔᑊᐣᓫᣗ
|
||||
// ᒢᐩᐩ.ᒃᣔᔆᑊᒼ.ᔆᐪᓫᣖ.ᘁᣔᒻᓑᓫ
|
||||
// ᒢᐩᐩ.ᒡᒢᣔᣗᣖ.ᒼᐤᣗᓫ
|
||||
// ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ
|
||||
// ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ.ᑊᐣᓑᒼᑊᑉ
|
||||
// ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ.ᙆᑊᒻᒻᣔᒻᣔ
|
||||
// ᒢᐩᐩ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ
|
||||
// ᒢᐩᐩ.ᐪᓫᕽᐪ.ᔆᐪᣗᑊᣕᕐ.ᣔᑊᐣᓑᒻᐪ (jpp 18 bit version of PrimordialOctalOrangeString)
|
||||
// ᒢᐩᐩ.ᐪᓫᕽᐪ.ᔆᐪᣗᑊᣕᕐ.ᓑᣕᣳᒼᐤᒄᓫ
|
||||
// - real enum terminator set is from FC18 (FCFlameNumberGram.java)
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
/// The NX01 jpp0 nether tone module.
|
||||
/// The NX01 jpp0 nether-tone module.
|
||||
///
|
||||
/// @author للَّٰهِilLצسُو
|
||||
/// @version ©Δ∞ 仙上主天
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
/// The NX01 jpp1 klass cake module.
|
||||
/// The NX01 jpp1 klass-cake module.
|
||||
///
|
||||
/// @author للَّٰهِilLצسُو
|
||||
/// @version ©Δ∞ 仙上主天
|
||||
|
|
|
|||
|
|
@ -6,12 +6,8 @@
|
|||
<artifactId>nx01</artifactId>
|
||||
<version>5786.SHEVAT〄.1-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>nx01-warp-fault</artifactId>
|
||||
<artifactId>nx01-jpp1-klass-fault</artifactId>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>love.distributedrebirth.nx01</groupId>
|
||||
<artifactId>nx01-warp-manifestor</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
<artifactId>junit-jupiter</artifactId>
|
||||
|
|
@ -25,14 +25,12 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault.sitra;
|
||||
|
||||
/// Internal marker to point to the white paper signal.
|
||||
/// The NX01 jpp1 klass-fault module.
|
||||
///
|
||||
/// @author للَّٰهِilLצسُو
|
||||
/// @version ©Δ∞ 仙上主天
|
||||
@Deprecated
|
||||
/*public*/ enum SitraManifestSectionWhitePaper {
|
||||
;
|
||||
// An empty enum type is a static jvm safe locked pointer to somewhere.
|
||||
module ᣕᕁᐤᣳ.ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ {
|
||||
|
||||
exports ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ;
|
||||
exports ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ.ᑊᐣᓑᒼᑊᑉ;
|
||||
}
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault;
|
||||
package ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault;
|
||||
package ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedHashMap;
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault;
|
||||
package ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.function.Consumer;
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault;
|
||||
package ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.function.Consumer;
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault;
|
||||
package ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.function.Consumer;
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault;
|
||||
package ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.function.Consumer;
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault;
|
||||
package ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.function.Consumer;
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault;
|
||||
package ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.function.Consumer;
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault;
|
||||
package ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.function.Consumer;
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault;
|
||||
package ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.function.Consumer;
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault;
|
||||
package ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.function.Consumer;
|
||||
|
|
@ -25,14 +25,13 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault;
|
||||
package ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
import java.util.Objects;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.fault.duck.DuckTailQuackLanguageFactory;
|
||||
import love.distributedrebirth.nx01.warp.fault.duck.DuckTailQuackLanguageProvider;
|
||||
import ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ.ᑊᐣᓑᒼᑊᑉ.DuckFaultQuackLanguage;
|
||||
|
||||
/// Replaces; Packs an error of an other person.
|
||||
///
|
||||
|
|
@ -58,12 +57,11 @@ public final class FaultStreamDelegate extends BassFaultAnchor {
|
|||
super(error, signal, tracer);
|
||||
}
|
||||
|
||||
static public FaultStreamDelegate valueOfDuckTail(Class<?> signal, String quackLanguage, String quack) {
|
||||
Optional<DuckTailQuackLanguageProvider> duckTail = DuckTailQuackLanguageFactory.亞.deliverQuackLanguage(quackLanguage);
|
||||
if (duckTail.isEmpty()) {
|
||||
return new FaultStreamDelegate("Missing duck for quack of: " + quackLanguage, signal);
|
||||
}
|
||||
FaultStreamDelegateDuckTail tail = duckTail.get().parseDuckTail(quack);
|
||||
static public FaultStreamDelegate valueOfDuckTail(Class<?> signal, String quack, DuckFaultQuackLanguage quackLanguage) {
|
||||
Objects.requireNonNull(signal);
|
||||
Objects.requireNonNull(quack);
|
||||
Objects.requireNonNull(quackLanguage);
|
||||
FaultStreamDelegateDuckTail tail = quackLanguage.combDuckTail(quack, FaultStreamDelegateDuckTail::valueOf);
|
||||
if (tail == null) {
|
||||
return new FaultStreamDelegate("Quack without duck tail: " + quack, signal);
|
||||
}
|
||||
|
|
@ -25,10 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.function.Consumer;
|
||||
package ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ;
|
||||
|
||||
/// Wrap stack traces of other languages with duck tales.
|
||||
///
|
||||
|
|
@ -38,19 +35,11 @@ public final class FaultStreamDelegateDuckTail extends BassFaultAnchor {
|
|||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public FaultStreamDelegateDuckTail(String message, Class<?> signal) {
|
||||
private FaultStreamDelegateDuckTail(String message, Class<?> signal) {
|
||||
super(message, signal);
|
||||
}
|
||||
|
||||
public FaultStreamDelegateDuckTail(Exception error, Class<?> signal) {
|
||||
super(error, signal);
|
||||
}
|
||||
|
||||
public FaultStreamDelegateDuckTail(Exception error, Class<?> signal, String key, String value) {
|
||||
super(error, signal, key, value);
|
||||
}
|
||||
|
||||
public FaultStreamDelegateDuckTail(Exception error, Class<?> signal, Consumer<Map<String, String>> tracer) {
|
||||
super(error, signal, tracer);
|
||||
static protected FaultStreamDelegateDuckTail valueOf(String message, Class<?> signal) {
|
||||
return new FaultStreamDelegateDuckTail(message, signal);
|
||||
}
|
||||
}
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault;
|
||||
package ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.function.Consumer;
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault;
|
||||
package ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.function.Consumer;
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault;
|
||||
package ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.function.Consumer;
|
||||
|
|
@ -27,4 +27,4 @@
|
|||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
package love.distributedrebirth.nx01.warp.fault;
|
||||
package ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ;
|
||||
|
|
@ -25,29 +25,17 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault.duck;
|
||||
package ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ.ᑊᐣᓑᒼᑊᑉ;
|
||||
|
||||
/// An abstract duck tail
|
||||
import java.util.function.BiFunction;
|
||||
|
||||
import ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ.FaultStreamDelegateDuckTail;
|
||||
|
||||
/// Combs an duck tail from a quack language trace.
|
||||
///
|
||||
/// @author للَّٰهِilLצسُو
|
||||
/// @version ©Δ∞ 仙上主天
|
||||
abstract public class AbstractDuckTailQuackLanguageProvider implements DuckTailQuackLanguageProvider {
|
||||
public interface DuckFaultQuackLanguage {
|
||||
|
||||
private final int duckMogul;
|
||||
private final String quackLanguage;
|
||||
|
||||
public AbstractDuckTailQuackLanguageProvider(int duckMogul, String quackLanguage) {
|
||||
this.duckMogul = duckMogul;
|
||||
this.quackLanguage = quackLanguage;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int duckMogul() {
|
||||
return duckMogul;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final String quackLanguage() {
|
||||
return quackLanguage;
|
||||
}
|
||||
FaultStreamDelegateDuckTail combDuckTail(String quack, BiFunction<String, Class<?>, FaultStreamDelegateDuckTail> tail);
|
||||
}
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault.duck;
|
||||
package ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ.ᑊᐣᓑᒼᑊᑉ;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
|
|
@ -33,21 +33,27 @@ import java.util.HashMap;
|
|||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.function.BiFunction;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.fault.FaultStreamDelegateDuckTail;
|
||||
import ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ.FaultStreamDelegateDuckTail;
|
||||
|
||||
/// Creates an duck tail from a quack selected by language and mogol.
|
||||
/// Creates an duck tail from a java-script stack trace.
|
||||
///
|
||||
/// @author للَّٰهِilLצسُو
|
||||
/// @version ©Δ∞ 仙上主天
|
||||
public class QuackJavaScriptDuckTales extends AbstractDuckTailQuackLanguageProvider {
|
||||
public class DuckTalesJavaScript implements DuckFaultQuackLanguage {
|
||||
|
||||
public QuackJavaScriptDuckTales() {
|
||||
super(1, "js");
|
||||
static private final DuckTalesJavaScript INSTANCE = new DuckTalesJavaScript();
|
||||
|
||||
private DuckTalesJavaScript() {
|
||||
}
|
||||
|
||||
static public DuckTalesJavaScript instance() {
|
||||
return INSTANCE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public FaultStreamDelegateDuckTail parseDuckTail(String quack) {
|
||||
public FaultStreamDelegateDuckTail combDuckTail(String quack, BiFunction<String, Class<?>, FaultStreamDelegateDuckTail> tail) {
|
||||
if (!quack.contains("at")) {
|
||||
return null;
|
||||
}
|
||||
|
|
@ -121,7 +127,7 @@ public class QuackJavaScriptDuckTales extends AbstractDuckTailQuackLanguageProvi
|
|||
}
|
||||
trace.add(new StackTraceElement(declaringClass, methodName, fileName, lineNumber));
|
||||
}
|
||||
FaultStreamDelegateDuckTail result = new FaultStreamDelegateDuckTail(errorMsg, getClass());
|
||||
FaultStreamDelegateDuckTail result = tail.apply(errorMsg, getClass());
|
||||
result.setStackTrace(trace.toArray(new StackTraceElement[] {}));
|
||||
result.withSignalTrace(getClass(), v -> v.putAll(signals));
|
||||
return result;
|
||||
|
|
@ -27,4 +27,4 @@
|
|||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
package love.distributedrebirth.nx01.warp.fault.duck;
|
||||
package ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ.ᑊᐣᓑᒼᑊᑉ;
|
||||
|
|
@ -6,15 +6,15 @@
|
|||
<artifactId>nx01</artifactId>
|
||||
<version>5786.SHEVAT〄.1-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>nx01-warp-manifestor</artifactId>
|
||||
<artifactId>nx01-jpp2-warp-manifestor</artifactId>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>love.distributedrebirth.nx01</groupId>
|
||||
<artifactId>nx01-x4o-driver</artifactId>
|
||||
<artifactId>nx01-x4o-fc18</artifactId>
|
||||
</dependency>
|
||||
<dependency><!-- TEMP TODO: delete V2 V3 V4 V5 V6, this dep should be revered no2all is allowed to dep on warp code -->
|
||||
<dependency>
|
||||
<groupId>love.distributedrebirth.nx01</groupId>
|
||||
<artifactId>nx01-no2all-nostr</artifactId>
|
||||
<artifactId>nx01-x4o-sax3</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
42
nx01-jpp2-warp-manifestor/src/main/java/module-info.java
Normal file
42
nx01-jpp2-warp-manifestor/src/main/java/module-info.java
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
/*
|
||||
* Copyright ©Δ∞ 仙上主天
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
* that the following conditions are met:
|
||||
*
|
||||
* * Redistributions of source code must retain the above copyright notice, this list of conditions and the
|
||||
* following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
* the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
* * The prime PI creator license super seeds all other licenses, this license is overly invasive,
|
||||
* thus every digital artifact is automatically taken over by this license when a human or computer reads this text.
|
||||
* Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits,
|
||||
* even on air gaped systems, all information in the universe is owned by the pi creator.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY
|
||||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
|
||||
* THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
|
||||
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
|
||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
/// The NX01 jpp2 warp-menifestor module.
|
||||
///
|
||||
/// @author للَّٰهِilLצسُو
|
||||
/// @version ©Δ∞ 仙上主天
|
||||
module ᣕᕁᐤᣳ.ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ {
|
||||
requires transitive ᣕᕁᐤᣳ.ᕽᙾᐤ.ᔆᣔᕽᕀᕀᕀ;
|
||||
requires transitive ᣕᕁᐤᣳ.ᕽᙾᐤ.ᣘᒼᣳᔥ;
|
||||
|
||||
exports ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ;
|
||||
exports ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ;
|
||||
exports ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ᑊᐤᑊᣕᑊ;
|
||||
exports ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ᑊᐤᔿᣘ;
|
||||
exports ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ᑊᐤᔿᣘᐩᐩᐩᐩᐩ;
|
||||
exports ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ;
|
||||
}
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
|
|
@ -41,27 +41,18 @@ import java.nio.charset.StandardCharsets;
|
|||
import org.x4o.sax3.io.xdbx.XDBXReaderXml;
|
||||
import org.x4o.sax3.io.xdbx.XDBXWriterXml;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.manifestor.manifest.WarpManifestX8;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.manifest.WarpManifestX18;
|
||||
import love.distributedrebirth.nx01.no2all.nostr.octo.tlv.TLVChainOctalSex;
|
||||
import love.distributedrebirth.nx01.no2all.nostr.octo.tlv.TLVChainSexTeenBit;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.manifest.WarpManifestX0TheMimeType;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.manifest.WarpManifestX0TheVersion;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestContentPulser;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestContentStringHandler;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestException;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ioini.ScopicIniConstants;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ioini.ScopicIniContentReader;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ioini.ScopicIniContentWriter;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.iomf.ScopicManifestContentReader;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.iomf.ScopicManifestContentWriter;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.iomf3.ScopicManifest3ContentReader;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.iomf3.ScopicManifest3ContentWriter;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.iomf4.ScopicManifest4ContentHandler;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.iomf4.ScopicManifest4ContentReader;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.iomf4.ScopicManifest4ContentWriter;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.iomf5.ScopicManifest5ContentParser;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.iomf5.ScopicManifest5ContentWriter;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ScopicManifestContentPulser;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ScopicManifestContentStringHandler;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ScopicManifestException;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ᑊᐤᑊᣕᑊ.ScopicIniConstants;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ᑊᐤᑊᣕᑊ.ScopicIniContentReader;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ᑊᐤᑊᣕᑊ.ScopicIniContentWriter;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ᑊᐤᔿᣘ.ScopicManifestContentReader;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ᑊᐤᔿᣘ.ScopicManifestContentWriter;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ᑊᐤᔿᣘᐩᐩᐩᐩᐩ.ScopicManifest5ContentParser;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ᑊᐤᔿᣘᐩᐩᐩᐩᐩ.ScopicManifest5ContentWriter;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ.WarpManifestX0TheVersion;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ.WarpManifestX8;
|
||||
|
||||
/// Warp Manifestor Driver.
|
||||
///
|
||||
|
|
@ -120,57 +111,57 @@ public final class WarpManifestorDriver {
|
|||
return result;
|
||||
}
|
||||
|
||||
static public WarpManifestX8 readV3Buffer(ByteBuffer input) {
|
||||
return readV3Array(input.array());
|
||||
}
|
||||
|
||||
static public WarpManifestX8 readV3Array(byte[] input) {
|
||||
return readV3Stream(new ByteArrayInputStream(input));
|
||||
}
|
||||
|
||||
static public WarpManifestX8 readV3Stream(InputStream input) {
|
||||
WarpManifestX8 result = new WarpManifestX8();
|
||||
ScopicManifestContentStringHandler handler = new ScopicManifestContentStringHandler(result, WarpManifestX0TheVersion.VERSION_3_0);
|
||||
ScopicManifest3ContentReader reader = new ScopicManifest3ContentReader(handler);
|
||||
TLVChainSexTeenBit chain = new TLVChainSexTeenBit();
|
||||
try {
|
||||
WarpManifestX0TheMimeType mimeType = WarpManifestX0TheMimeType.magicMarkerRead(input, WarpManifestX0TheMimeType.MARKER_3_LENGTH);
|
||||
if (!WarpManifestX0TheMimeType.MANIFEST_3.equals(mimeType)) {
|
||||
throw new ScopicManifestException("Invalid stream magic marker: " + mimeType); // TODO: move and change magicMarkerRead(in,enum)
|
||||
}
|
||||
chain.dataReadStream(input);
|
||||
} catch (IOException e) {
|
||||
throw new ScopicManifestException(e);
|
||||
}
|
||||
reader.parse(chain);
|
||||
return result;
|
||||
}
|
||||
|
||||
static public WarpManifestX18 readV4Buffer(ByteBuffer input) {
|
||||
return readV4Array(input.array());
|
||||
}
|
||||
|
||||
static public WarpManifestX18 readV4Array(byte[] input) {
|
||||
return readV4Stream(new ByteArrayInputStream(input));
|
||||
}
|
||||
|
||||
static public WarpManifestX18 readV4Stream(InputStream input) {
|
||||
WarpManifestX18 result = new WarpManifestX18();
|
||||
ScopicManifest4ContentHandler handler = new ScopicManifest4ContentHandler(result);
|
||||
ScopicManifest4ContentReader reader = new ScopicManifest4ContentReader(handler);
|
||||
TLVChainOctalSex chain = new TLVChainOctalSex();
|
||||
try {
|
||||
WarpManifestX0TheMimeType mimeType = WarpManifestX0TheMimeType.magicMarkerRead(input, WarpManifestX0TheMimeType.MARKER_4_LENGTH);
|
||||
if (!WarpManifestX0TheMimeType.MANIFEST_4.equals(mimeType)) {
|
||||
throw new ScopicManifestException("Invalid stream magic marker: " + mimeType); // TODO: move and change magicMarkerRead(in,enum)
|
||||
}
|
||||
chain.dataReadStream(input);
|
||||
} catch (IOException e) {
|
||||
throw new ScopicManifestException(e);
|
||||
}
|
||||
reader.parse(chain);
|
||||
return result;
|
||||
}
|
||||
// static public WarpManifestX8 readV3Buffer(ByteBuffer input) {
|
||||
// return readV3Array(input.array());
|
||||
// }
|
||||
//
|
||||
// static public WarpManifestX8 readV3Array(byte[] input) {
|
||||
// return readV3Stream(new ByteArrayInputStream(input));
|
||||
// }
|
||||
//
|
||||
// static public WarpManifestX8 readV3Stream(InputStream input) {
|
||||
// WarpManifestX8 result = new WarpManifestX8();
|
||||
// ScopicManifestContentStringHandler handler = new ScopicManifestContentStringHandler(result, WarpManifestX0TheVersion.VERSION_3_0);
|
||||
// ScopicManifest3ContentReader reader = new ScopicManifest3ContentReader(handler);
|
||||
// TLVChainSexTeenBit chain = new TLVChainSexTeenBit();
|
||||
// try {
|
||||
// WarpManifestX0TheMimeType mimeType = WarpManifestX0TheMimeType.magicMarkerRead(input, WarpManifestX0TheMimeType.MARKER_3_LENGTH);
|
||||
// if (!WarpManifestX0TheMimeType.MANIFEST_3.equals(mimeType)) {
|
||||
// throw new ScopicManifestException("Invalid stream magic marker: " + mimeType); // TODO: move and change magicMarkerRead(in,enum)
|
||||
// }
|
||||
// chain.dataReadStream(input);
|
||||
// } catch (IOException e) {
|
||||
// throw new ScopicManifestException(e);
|
||||
// }
|
||||
// reader.parse(chain);
|
||||
// return result;
|
||||
// }
|
||||
//
|
||||
// static public WarpManifestX18 readV4Buffer(ByteBuffer input) {
|
||||
// return readV4Array(input.array());
|
||||
// }
|
||||
//
|
||||
// static public WarpManifestX18 readV4Array(byte[] input) {
|
||||
// return readV4Stream(new ByteArrayInputStream(input));
|
||||
// }
|
||||
//
|
||||
// static public WarpManifestX18 readV4Stream(InputStream input) {
|
||||
// WarpManifestX18 result = new WarpManifestX18();
|
||||
// ScopicManifest4ContentHandler handler = new ScopicManifest4ContentHandler(result);
|
||||
// ScopicManifest4ContentReader reader = new ScopicManifest4ContentReader(handler);
|
||||
// TLVChainOctalSex chain = new TLVChainOctalSex();
|
||||
// try {
|
||||
// WarpManifestX0TheMimeType mimeType = WarpManifestX0TheMimeType.magicMarkerRead(input, WarpManifestX0TheMimeType.MARKER_4_LENGTH);
|
||||
// if (!WarpManifestX0TheMimeType.MANIFEST_4.equals(mimeType)) {
|
||||
// throw new ScopicManifestException("Invalid stream magic marker: " + mimeType); // TODO: move and change magicMarkerRead(in,enum)
|
||||
// }
|
||||
// chain.dataReadStream(input);
|
||||
// } catch (IOException e) {
|
||||
// throw new ScopicManifestException(e);
|
||||
// }
|
||||
// reader.parse(chain);
|
||||
// return result;
|
||||
// }
|
||||
|
||||
static public WarpManifestX8 readV5Buffer(ByteBuffer input) {
|
||||
return readV5Array(input.array());
|
||||
|
|
@ -247,47 +238,47 @@ public final class WarpManifestorDriver {
|
|||
ScopicManifestContentPulser.strobelight(manifest, new ScopicManifestContentWriter(output), WarpManifestX0TheVersion.VERSION_2_0.getQName());
|
||||
}
|
||||
|
||||
static public ByteBuffer writeV3Buffer(WarpManifestX8 manifest) {
|
||||
return ByteBuffer.wrap(writeV3Array(manifest));
|
||||
}
|
||||
|
||||
static public byte[] writeV3Array(WarpManifestX8 manifest) {
|
||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||
writeV3Stream(manifest, baos);
|
||||
return baos.toByteArray();
|
||||
}
|
||||
|
||||
static public void writeV3Stream(WarpManifestX8 manifest, OutputStream output) {
|
||||
TLVChainSexTeenBit chain = new TLVChainSexTeenBit();
|
||||
ScopicManifestContentPulser.strobelight(manifest, new ScopicManifest3ContentWriter(chain), WarpManifestX0TheVersion.VERSION_3_0.getQName());
|
||||
try {
|
||||
WarpManifestX0TheMimeType.magicMarkerWrite(output, WarpManifestX0TheMimeType.MANIFEST_3);
|
||||
chain.dataWriteStream(output);
|
||||
} catch (IOException e) {
|
||||
throw new ScopicManifestException(e);
|
||||
}
|
||||
}
|
||||
|
||||
static public ByteBuffer writeV4Buffer(WarpManifestX18 manifest) {
|
||||
return ByteBuffer.wrap(writeV4Array(manifest));
|
||||
}
|
||||
|
||||
static public byte[] writeV4Array(WarpManifestX18 manifest) {
|
||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||
writeV4Stream(manifest, baos);
|
||||
return baos.toByteArray();
|
||||
}
|
||||
|
||||
static public void writeV4Stream(WarpManifestX18 manifest, OutputStream output) {
|
||||
TLVChainOctalSex chain = new TLVChainOctalSex();
|
||||
ScopicManifestContentPulser.strobelight(manifest, new ScopicManifest4ContentWriter(chain), WarpManifestX0TheVersion.VERSION_4_0);
|
||||
try {
|
||||
WarpManifestX0TheMimeType.magicMarkerWrite(output, WarpManifestX0TheMimeType.MANIFEST_4);
|
||||
chain.dataWriteStream(output);
|
||||
} catch (IOException e) {
|
||||
throw new ScopicManifestException(e);
|
||||
}
|
||||
}
|
||||
// static public ByteBuffer writeV3Buffer(WarpManifestX8 manifest) {
|
||||
// return ByteBuffer.wrap(writeV3Array(manifest));
|
||||
// }
|
||||
//
|
||||
// static public byte[] writeV3Array(WarpManifestX8 manifest) {
|
||||
// ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||
// writeV3Stream(manifest, baos);
|
||||
// return baos.toByteArray();
|
||||
// }
|
||||
//
|
||||
// static public void writeV3Stream(WarpManifestX8 manifest, OutputStream output) {
|
||||
// TLVChainSexTeenBit chain = new TLVChainSexTeenBit();
|
||||
// ScopicManifestContentPulser.strobelight(manifest, new ScopicManifest3ContentWriter(chain), WarpManifestX0TheVersion.VERSION_3_0.getQName());
|
||||
// try {
|
||||
// WarpManifestX0TheMimeType.magicMarkerWrite(output, WarpManifestX0TheMimeType.MANIFEST_3);
|
||||
// chain.dataWriteStream(output);
|
||||
// } catch (IOException e) {
|
||||
// throw new ScopicManifestException(e);
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// static public ByteBuffer writeV4Buffer(WarpManifestX18 manifest) {
|
||||
// return ByteBuffer.wrap(writeV4Array(manifest));
|
||||
// }
|
||||
//
|
||||
// static public byte[] writeV4Array(WarpManifestX18 manifest) {
|
||||
// ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||
// writeV4Stream(manifest, baos);
|
||||
// return baos.toByteArray();
|
||||
// }
|
||||
//
|
||||
// static public void writeV4Stream(WarpManifestX18 manifest, OutputStream output) {
|
||||
// TLVChainOctalSex chain = new TLVChainOctalSex();
|
||||
// ScopicManifestContentPulser.strobelight(manifest, new ScopicManifest4ContentWriter(chain), WarpManifestX0TheVersion.VERSION_4_0);
|
||||
// try {
|
||||
// WarpManifestX0TheMimeType.magicMarkerWrite(output, WarpManifestX0TheMimeType.MANIFEST_4);
|
||||
// chain.dataWriteStream(output);
|
||||
// } catch (IOException e) {
|
||||
// throw new ScopicManifestException(e);
|
||||
// }
|
||||
// }
|
||||
|
||||
static public ByteBuffer writeV5Buffer(WarpManifestX8 manifest) {
|
||||
return ByteBuffer.wrap(writeV5Array(manifest));
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.scopic;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ;
|
||||
|
||||
/// Stroboscopic manifestor content handler.
|
||||
///
|
||||
|
|
@ -25,13 +25,13 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.scopic;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.manifestor.manifest.WarpManifestX0;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.manifest.WarpManifestX0HeaderField;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.manifest.WarpManifestX0Section;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ.WarpManifestX0;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ.WarpManifestX0HeaderField;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ.WarpManifestX0Section;
|
||||
|
||||
/// Stroboscopic manifestor content pulser.
|
||||
///
|
||||
|
|
@ -25,16 +25,16 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.scopic;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.manifestor.manifest.WarpManifestX8;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.manifest.WarpManifestX8Section;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.manifest.WarpManifestX0TheVersion;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ.WarpManifestX0TheVersion;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ.WarpManifestX8;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ.WarpManifestX8Section;
|
||||
|
||||
/// Stroboscopic manifest 1 and 2 content handler.
|
||||
///
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.scopic;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Objects;
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.scopic;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ;
|
||||
|
||||
/// Stroboscopic manifest duplicate part to check.
|
||||
///
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.scopic;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ;
|
||||
|
||||
/// Manifestor content exception.
|
||||
///
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.scopic.ioini;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ᑊᐤᑊᣕᑊ;
|
||||
|
||||
import java.util.PrimitiveIterator;
|
||||
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.scopic.ioini;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ᑊᐤᑊᣕᑊ;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
|
|
@ -36,8 +36,8 @@ import java.util.PrimitiveIterator;
|
|||
|
||||
import org.x4o.sax3.io.SAX3XMLConstants;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestContent;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestException;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ScopicManifestContent;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ScopicManifestException;
|
||||
|
||||
/// Stroboscopic ini file content reader.
|
||||
///
|
||||
|
|
@ -25,17 +25,17 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.scopic.ioini;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ᑊᐤᑊᣕᑊ;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.Writer;
|
||||
import java.util.Arrays;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestContent;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestDuplicateDetector;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestDuplicatePart;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestException;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ScopicManifestContent;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ScopicManifestDuplicateDetector;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ScopicManifestDuplicatePart;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ScopicManifestException;
|
||||
|
||||
/// Stroboscopic ini file content writer.
|
||||
///
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.scopic.iomf;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ᑊᐤᔿᣘ;
|
||||
|
||||
import java.util.PrimitiveIterator;
|
||||
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.scopic.iomf;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ᑊᐤᔿᣘ;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
|
|
@ -37,10 +37,10 @@ import java.util.PrimitiveIterator;
|
|||
|
||||
import org.x4o.sax3.io.SAX3XMLConstants;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.manifestor.manifest.WarpManifestX8HeaderField;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.manifest.WarpManifestX0TheVersion;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestContent;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestException;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ScopicManifestContent;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ScopicManifestException;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ.WarpManifestX0TheVersion;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ.WarpManifestX8HeaderField;
|
||||
|
||||
/// Stroboscopic manifest 1 and 2 content reader.
|
||||
///
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.scopic.iomf;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ᑊᐤᔿᣘ;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.Writer;
|
||||
|
|
@ -33,11 +33,11 @@ import java.util.Arrays;
|
|||
import java.util.PrimitiveIterator;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.manifestor.manifest.WarpManifestX0TheVersion;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestContent;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestDuplicateDetector;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestDuplicatePart;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestException;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ScopicManifestContent;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ScopicManifestDuplicateDetector;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ScopicManifestDuplicatePart;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ScopicManifestException;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ.WarpManifestX0TheVersion;
|
||||
|
||||
/// Stroboscopic manifest 1 and 2 content writer.
|
||||
///
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.scopic.iomf5;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ᑊᐤᔿᣘᐩᐩᐩᐩᐩ;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Objects;
|
||||
|
|
@ -35,8 +35,8 @@ import org.x4o.sax3.io.SAX3XMLConstants;
|
|||
import org.xml.sax.Attributes;
|
||||
import org.xml.sax.SAXException;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestContent;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestException;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ScopicManifestContent;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ScopicManifestException;
|
||||
|
||||
/// Stroboscopic manifest 5 text XML content reader.
|
||||
///
|
||||
|
|
@ -25,7 +25,7 @@ w * Copyright ©Δ∞ 仙上主天
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.scopic.iomf5;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ᑊᐤᔿᣘᐩᐩᐩᐩᐩ;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
|
|
@ -33,12 +33,12 @@ import org.x4o.sax3.SAX3WriterEnum;
|
|||
import org.x4o.sax3.io.ContentWriter;
|
||||
import org.xml.sax.helpers.AttributesImpl;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.manifestor.manifest.WarpManifestX0TheVersion;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestContent;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestDuplicateDetector;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestDuplicatePart;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestException;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.iomf.ScopicManifestConstants;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ScopicManifestContent;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ScopicManifestDuplicateDetector;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ScopicManifestDuplicatePart;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ScopicManifestException;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ᑊᐤᔿᣘ.ScopicManifestConstants;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ.WarpManifestX0TheVersion;
|
||||
|
||||
/// Stroboscopic manifest 5 binary XML content writer.
|
||||
///
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.scopic.iomf5;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ᑊᐤᔿᣘᐩᐩᐩᐩᐩ;
|
||||
|
||||
/// Stroboscopic manifest 5 frame tag values.
|
||||
///
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.manifest;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.manifest;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.manifest;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.manifest;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
|
@ -35,7 +35,7 @@ import java.util.Optional;
|
|||
|
||||
import org.x4o.sax3.io.xdbx.XDBXConstants;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestException;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ScopicManifestException;
|
||||
|
||||
/// Warp manifest 0 bit schema of the mime types and magic markers.
|
||||
///
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.manifest;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Optional;
|
||||
|
|
@ -61,7 +61,7 @@ public enum WarpManifestX0TheVersion {
|
|||
// VERSION_7_0
|
||||
;
|
||||
|
||||
public static final PrimordialOctalOrangeJuiceStraw VERSION_4_0 = PrimordialOctalOrangeString.valueOfSmurfs(Arrays.asList(4, 0));
|
||||
public static final PrimordialOctalOrangeJuiceStraw VERSION_4_0 = PrimordialOctalOrangeString.ioSmurfReadListX18(Arrays.asList(4, 0));
|
||||
|
||||
private final String qName;
|
||||
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.manifest;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.manifest;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.manifest;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ;
|
||||
|
||||
import org.x4o.fc18.FourCornerUnicodeImport;
|
||||
import org.x4o.fc18.zion7.octal8.PrimordialOctalOrangeJuiceStraw;
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.manifest;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.manifest;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.manifest;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.manifest;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ;
|
||||
|
||||
import java.io.StringWriter;
|
||||
|
||||
|
|
@ -33,11 +33,11 @@ import org.junit.jupiter.api.Assertions;
|
|||
import org.junit.jupiter.api.Test;
|
||||
import org.x4o.sax3.SAX3WriterXml;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.manifestor.manifest.WarpManifestX0TheVersion;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.manifest.WarpManifestX8;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.manifest.WarpManifestX8Section;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestContentPulser;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.iomf5.ScopicManifest5ContentWriter;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ScopicManifestContentPulser;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ᑊᐤᔿᣘᐩᐩᐩᐩᐩ.ScopicManifest5ContentWriter;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ.WarpManifestX0TheVersion;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ.WarpManifestX8;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ.WarpManifestX8Section;
|
||||
|
||||
/// @author للَّٰهِilLצسُو
|
||||
/// @version ©Δ∞ 仙上主天s
|
||||
|
|
@ -25,16 +25,16 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ;
|
||||
|
||||
import java.nio.charset.StandardCharsets;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.manifestor.manifest.WarpManifestX18;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.manifest.WarpManifestX18Import;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.manifest.WarpManifestX8;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ.WarpManifestX18;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ.WarpManifestX18Import;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ.WarpManifestX8;
|
||||
|
||||
/// @author للَّٰهِilLצسُو
|
||||
/// @version ©Δ∞ 仙上主天
|
||||
|
|
@ -72,8 +72,8 @@ public class WarpManifestorDriverTest {
|
|||
System.out.println("size-OF: " + manitest.getAttributeBodyNullable("Implementation-Vendor-Id"));
|
||||
System.out.println("size-V1: " + WarpManifestorDriver.writeV1String(manitest).getBytes(StandardCharsets.UTF_8).length);
|
||||
System.out.println("size-V2: " + WarpManifestorDriver.writeV2String(manitest).getBytes(StandardCharsets.UTF_8).length);
|
||||
System.out.println("size-V3: " + WarpManifestorDriver.writeV3Array(manitest).length);
|
||||
System.out.println("size-V4: " + WarpManifestorDriver.writeV4Array(manitestX18).length);
|
||||
//System.out.println("size-V3: " + WarpManifestorDriver.writeV3Array(manitest).length);
|
||||
//System.out.println("size-V4: " + WarpManifestorDriver.writeV4Array(manitestX18).length);
|
||||
System.out.println("size-V5: " + WarpManifestorDriver.writeV5Array(manitest).length);
|
||||
}
|
||||
}
|
||||
|
|
@ -25,12 +25,12 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.manifestor.manifest.WarpManifestX8;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ.WarpManifestX8;
|
||||
|
||||
/// @author للَّٰهِilLצسُو
|
||||
/// @version ©Δ∞ 仙上主天
|
||||
|
|
@ -25,15 +25,14 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.manifest;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ;
|
||||
|
||||
import java.nio.charset.StandardCharsets;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.manifestor.WarpManifestorDriver;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestException;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.WarpManifestorDriver;
|
||||
|
||||
/// @author للَّٰهِilLצسُو
|
||||
/// @version ©Δ∞ 仙上主天
|
||||
|
|
@ -75,22 +74,4 @@ public class WarpManifestBigBodyTest {
|
|||
Assertions.assertNotNull(manitestV1);
|
||||
Assertions.assertEquals(1, manitestV1.getAttributes().size());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWriteV3LongContent() {
|
||||
StringBuilder buf = new StringBuilder();
|
||||
for (int i=0;i<65535;i++) {
|
||||
buf.append("0");
|
||||
}
|
||||
WarpManifestX8 manifest = new WarpManifestX8();
|
||||
manifest.withAttribute("limit-lines", buf.toString());
|
||||
byte[] output = WarpManifestorDriver.writeV3Array(manifest);
|
||||
Assertions.assertNotNull(output);
|
||||
WarpManifestX8 manifestClone = WarpManifestorDriver.readV3Array(output);
|
||||
Assertions.assertEquals(manifest.getAttributes().get(0).getBody(), manifestClone.getAttributes().get(0).getBody());
|
||||
Assertions.assertThrows(ScopicManifestException.class, () -> {
|
||||
manifest.withAttribute("limit-lines", "1" + buf.toString());
|
||||
WarpManifestorDriver.writeV3Array(manifest);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -25,13 +25,13 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.manifest;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.manifestor.WarpManifestorDriver;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestException;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.WarpManifestorDriver;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ScopicManifestException;
|
||||
|
||||
/// @author للَّٰهِilLצسُو
|
||||
/// @version ©Δ∞ 仙上主天
|
||||
|
|
@ -90,31 +90,4 @@ public class WarpManifestBodyIllegalTest {
|
|||
WarpManifestorDriver.writeV2String(manifest);
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWriteV3BodyNewLine() {
|
||||
WarpManifestX8 manifest = new WarpManifestX8();
|
||||
manifest.withAttribute("foo", "bar\n");
|
||||
Assertions.assertThrows(ScopicManifestException.class, () -> {
|
||||
WarpManifestorDriver.writeV3Array(manifest);
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWriteV3BodyLineFeed() {
|
||||
WarpManifestX8 manifest = new WarpManifestX8();
|
||||
manifest.withAttribute("foo", "bar\r");
|
||||
Assertions.assertThrows(ScopicManifestException.class, () -> {
|
||||
WarpManifestorDriver.writeV3Array(manifest);
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWriteV3BodyNull() {
|
||||
WarpManifestX8 manifest = new WarpManifestX8();
|
||||
manifest.withAttribute("foo", "bar\u0000");
|
||||
Assertions.assertThrows(ScopicManifestException.class, () -> {
|
||||
WarpManifestorDriver.writeV3Array(manifest);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -25,16 +25,13 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.manifest;
|
||||
|
||||
import java.util.Arrays;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.x4o.fc18.zion7.octal8.PrimordialOctalOrangeString;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.manifestor.WarpManifestorDriver;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestException;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.WarpManifestorDriver;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ScopicManifestException;
|
||||
|
||||
/// @author للَّٰهِilLצسُو
|
||||
/// @version ©Δ∞ 仙上主天
|
||||
|
|
@ -98,66 +95,6 @@ public class WarpManifestNameDupTest {
|
|||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWriteV3DuplicateMainAttribute() {
|
||||
WarpManifestX8 manifest = new WarpManifestX8();
|
||||
manifest.withAttribute("foo", "bar1");
|
||||
manifest.withAttribute("foo", "bar2");
|
||||
Assertions.assertThrows(ScopicManifestException.class, () -> {
|
||||
WarpManifestorDriver.writeV3Array(manifest);
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWriteV3DuplicateSection() {
|
||||
WarpManifestX8 manifest = new WarpManifestX8();
|
||||
manifest.makeSection("junit");
|
||||
manifest.makeSection("junit");
|
||||
Assertions.assertThrows(ScopicManifestException.class, () -> {
|
||||
WarpManifestorDriver.writeV3Array(manifest);
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWriteV3DuplicateSectionAttribute() {
|
||||
WarpManifestX8 manifest = new WarpManifestX8();
|
||||
manifest.makeSection("junit").withAttribute("foo", "bar1").withAttribute("foo", "bar1");
|
||||
Assertions.assertThrows(ScopicManifestException.class, () -> {
|
||||
WarpManifestorDriver.writeV3Array(manifest);
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWriteV4DuplicateMainAttribute() {
|
||||
WarpManifestX18 manifest = new WarpManifestX18();
|
||||
manifest.withAttribute(PrimordialOctalOrangeString.valueOfSmurfs(Arrays.asList(1, 2, 3)), PrimordialOctalOrangeString.valueOfSmurfs(Arrays.asList(1, 2, 3)));
|
||||
manifest.withAttribute(PrimordialOctalOrangeString.valueOfSmurfs(Arrays.asList(1, 2, 3)), PrimordialOctalOrangeString.valueOfSmurfs(Arrays.asList(1, 2, 3)));
|
||||
Assertions.assertThrows(ScopicManifestException.class, () -> {
|
||||
WarpManifestorDriver.writeV4Array(manifest);
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWriteV4DuplicateSection() {
|
||||
WarpManifestX18 manifest = new WarpManifestX18();
|
||||
manifest.makeSection(PrimordialOctalOrangeString.valueOfSmurfs(Arrays.asList(1, 2, 3)));
|
||||
manifest.makeSection(PrimordialOctalOrangeString.valueOfSmurfs(Arrays.asList(1, 2, 3)));
|
||||
Assertions.assertThrows(ScopicManifestException.class, () -> {
|
||||
WarpManifestorDriver.writeV4Array(manifest);
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWriteV4DuplicateSectionAttribute() {
|
||||
WarpManifestX18 manifest = new WarpManifestX18();
|
||||
manifest.makeSection(PrimordialOctalOrangeString.valueOfSmurfs(Arrays.asList(1, 2, 3)))
|
||||
.withAttribute(PrimordialOctalOrangeString.valueOfSmurfs(Arrays.asList(1, 2, 3)), PrimordialOctalOrangeString.valueOfSmurfs(Arrays.asList(1, 2, 3)))
|
||||
.withAttribute(PrimordialOctalOrangeString.valueOfSmurfs(Arrays.asList(1, 2, 3)), PrimordialOctalOrangeString.valueOfSmurfs(Arrays.asList(1, 2, 3)));
|
||||
Assertions.assertThrows(ScopicManifestException.class, () -> {
|
||||
WarpManifestorDriver.writeV4Array(manifest);
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWriteV5DuplicateSection() {
|
||||
WarpManifestX8 manifest = new WarpManifestX8();
|
||||
|
|
@ -25,16 +25,13 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.manifest;
|
||||
|
||||
import java.util.Arrays;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.x4o.fc18.zion7.octal8.PrimordialOctalOrangeString;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.manifestor.WarpManifestorDriver;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestException;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.WarpManifestorDriver;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ScopicManifestException;
|
||||
|
||||
/// @author للَّٰهِilLצسُو
|
||||
/// @version ©Δ∞ 仙上主天
|
||||
|
|
@ -58,24 +55,6 @@ public class WarpManifestNameEmptyTest {
|
|||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWriteV3NameEmpty() {
|
||||
WarpManifestX8 manifest = new WarpManifestX8();
|
||||
manifest.withAttribute("", "bar");
|
||||
Assertions.assertThrows(ScopicManifestException.class, () -> {
|
||||
WarpManifestorDriver.writeV3Array(manifest);
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWriteV4NameEmpty() {
|
||||
WarpManifestX18 manifest = new WarpManifestX18();
|
||||
manifest.withAttribute(PrimordialOctalOrangeString.valueOfEmpty(), PrimordialOctalOrangeString.valueOfSmurfs(Arrays.asList(12,34)));
|
||||
Assertions.assertThrows(ScopicManifestException.class, () -> {
|
||||
WarpManifestorDriver.writeV4Array(manifest);
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWriteV5NameEmpty() {
|
||||
WarpManifestX8 manifest = new WarpManifestX8();
|
||||
|
|
@ -25,13 +25,13 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.manifest;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.manifestor.WarpManifestorDriver;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestException;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.WarpManifestorDriver;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ScopicManifestException;
|
||||
|
||||
/// @author للَّٰهِilLצسُو
|
||||
/// @version ©Δ∞ 仙上主天
|
||||
|
|
@ -91,33 +91,6 @@ public class WarpManifestNameForbidCharTest {
|
|||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWriteV3NameNewLine() {
|
||||
WarpManifestX8 manifest = new WarpManifestX8();
|
||||
manifest.withAttribute("foo\n", "bar");
|
||||
Assertions.assertThrows(ScopicManifestException.class, () -> {
|
||||
WarpManifestorDriver.writeV3Array(manifest);
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWriteV3NameLineFeed() {
|
||||
WarpManifestX8 manifest = new WarpManifestX8();
|
||||
manifest.withAttribute("foo\r", "bar");
|
||||
Assertions.assertThrows(ScopicManifestException.class, () -> {
|
||||
WarpManifestorDriver.writeV3Array(manifest);
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWriteV3NameNull() {
|
||||
WarpManifestX8 manifest = new WarpManifestX8();
|
||||
manifest.withAttribute("foo\u0000", "bar");
|
||||
Assertions.assertThrows(ScopicManifestException.class, () -> {
|
||||
WarpManifestorDriver.writeV3Array(manifest);
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWriteV5NameNewLine() {
|
||||
WarpManifestX8 manifest = new WarpManifestX8();
|
||||
|
|
@ -25,13 +25,13 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.manifest;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.manifestor.WarpManifestorDriver;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestException;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.WarpManifestorDriver;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ScopicManifestException;
|
||||
|
||||
/// @author للَّٰهِilLצسُو
|
||||
/// @version ©Δ∞ 仙上主天
|
||||
|
|
@ -69,20 +69,4 @@ public class WarpManifestNameLimitTest {
|
|||
WarpManifestorDriver.writeV2String(manifest);
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWriteV3NameLimit() {
|
||||
StringBuilder buf = new StringBuilder();
|
||||
for (int i=0;i<65535;i++) {
|
||||
buf.append("0");
|
||||
}
|
||||
WarpManifestX8 manifest = new WarpManifestX8();
|
||||
manifest.makeAttribute(buf.toString(), "foo").withRemark("remarkable");
|
||||
byte[] output = WarpManifestorDriver.writeV3Array(manifest);
|
||||
Assertions.assertNotNull(output);
|
||||
Assertions.assertThrows(ScopicManifestException.class, () -> {
|
||||
manifest.withAttribute(buf.toString() + "1", "bar");
|
||||
WarpManifestorDriver.writeV3Array(manifest);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -25,13 +25,13 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.manifest;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.manifestor.WarpManifestorDriver;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestException;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.WarpManifestorDriver;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ScopicManifestException;
|
||||
|
||||
/// @author للَّٰهِilLצسُو
|
||||
/// @version ©Δ∞ 仙上主天
|
||||
|
|
@ -56,19 +56,6 @@ public class WarpManifestNameSeperatorTest {
|
|||
Assertions.assertTrue(output.contains("junit:"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWriteV3OutputSeperator() {
|
||||
WarpManifestX8 manifest = new WarpManifestX8();
|
||||
manifest.withAttribute("ju n it:", "junit:");
|
||||
byte[] output = WarpManifestorDriver.writeV3Array(manifest);
|
||||
Assertions.assertNotNull(output);
|
||||
WarpManifestX8 manitest = WarpManifestorDriver.readV3Array(output);
|
||||
Assertions.assertNotNull(manitest);
|
||||
Assertions.assertEquals(1, manitest.getAttributes().size());
|
||||
Assertions.assertEquals("ju n it:", manitest.getAttributes().get(0).getName());
|
||||
Assertions.assertEquals("junit:", manitest.getAttributes().get(0).getBody());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWriteV5OutputSeperator() {
|
||||
WarpManifestX8 manifest = new WarpManifestX8();
|
||||
|
|
@ -25,13 +25,13 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.manifest;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.manifestor.WarpManifestorDriver;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestException;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.WarpManifestorDriver;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ScopicManifestException;
|
||||
|
||||
/// @author للَّٰهِilLצسُو
|
||||
/// @version ©Δ∞ 仙上主天
|
||||
|
|
@ -71,20 +71,6 @@ public class WarpManifestNameUnicodeTest {
|
|||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWriteV3NameUnicode() {
|
||||
WarpManifestX8 manifest = new WarpManifestX8();
|
||||
manifest.withAttribute("foo", "仙上主天");
|
||||
manifest.withAttribute("仙上主天", "bar");
|
||||
byte[] output = WarpManifestorDriver.writeV3Array(manifest);
|
||||
Assertions.assertNotNull(output);
|
||||
WarpManifestX8 manitest = WarpManifestorDriver.readV3Array(output);
|
||||
Assertions.assertNotNull(manitest);
|
||||
Assertions.assertEquals(2, manitest.getAttributes().size());
|
||||
Assertions.assertEquals("foo", manitest.getAttributes().get(0).getName());
|
||||
Assertions.assertEquals("仙上主天", manitest.getAttributes().get(1).getName());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWriteV5NameUnicode() {
|
||||
WarpManifestX8 manifest = new WarpManifestX8();
|
||||
|
|
@ -25,16 +25,13 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.manifest;
|
||||
|
||||
import java.util.Arrays;
|
||||
package ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.x4o.fc18.zion7.octal8.PrimordialOctalOrangeString;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.manifestor.WarpManifestorDriver;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.ScopicManifestException;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.WarpManifestorDriver;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ScopicManifestException;
|
||||
|
||||
/// @author للَّٰهِilLצسُو
|
||||
/// @version ©Δ∞ 仙上主天
|
||||
|
|
@ -58,25 +55,6 @@ public class WarpManifestSectionNameEmptyTest {
|
|||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWriteV3SectionNameEmpty() {
|
||||
WarpManifestX8 manifest = new WarpManifestX8();
|
||||
manifest.makeSection("").withAttribute("foo", "bar");
|
||||
Assertions.assertThrows(ScopicManifestException.class, () -> {
|
||||
WarpManifestorDriver.writeV3Array(manifest);
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWriteV4SectionNameEmpty() {
|
||||
PrimordialOctalOrangeString foobar = PrimordialOctalOrangeString.valueOfSmurfs(Arrays.asList(123,456,789));
|
||||
WarpManifestX18 manifest = new WarpManifestX18();
|
||||
manifest.makeSection(PrimordialOctalOrangeString.valueOfEmpty()).withAttribute(foobar, foobar);
|
||||
Assertions.assertThrows(ScopicManifestException.class, () -> {
|
||||
WarpManifestorDriver.writeV4Array(manifest);
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWriteV5SectionNameEmpty() {
|
||||
WarpManifestX8 manifest = new WarpManifestX8();
|
||||
25
nx01-jpp3-enter-zillala/pom.xml
Normal file
25
nx01-jpp3-enter-zillala/pom.xml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>love.distributedrebirth.nx01</groupId>
|
||||
<artifactId>nx01</artifactId>
|
||||
<version>5786.SHEVAT〄.1-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>nx01-jpp3-enter-zillala</artifactId>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>love.distributedrebirth.nx01</groupId>
|
||||
<artifactId>nx01-jpp1-klass-fault</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>love.distributedrebirth.nx01</groupId>
|
||||
<artifactId>nx01-jpp2-warp-manifestor</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
<artifactId>junit-jupiter</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
|
@ -25,35 +25,20 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.manifestor.scopic.iomf3;
|
||||
|
||||
import love.distributedrebirth.nx01.no2all.nostr.octo.tlv.TLVChainSexTeenBitFrameType;
|
||||
|
||||
/// Stroboscopic manifest 3 frame TLV values.
|
||||
///
|
||||
/// The NX01 jpp3 enter-zillala module.
|
||||
///
|
||||
/// @author للَّٰهِilLצسُو
|
||||
/// @version ©Δ∞ 仙上主天
|
||||
public enum ScopicManifest3FrameTLV implements TLVChainSexTeenBitFrameType {
|
||||
module ᣕᕁᐤᣳ.ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ {
|
||||
requires transitive ᣕᕁᐤᣳ.ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ;
|
||||
requires transitive ᣕᕁᐤᣳ.ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ;
|
||||
requires transitive java.management;
|
||||
requires transitive jdk.management;
|
||||
|
||||
META_DECLARATION_VERSION (22), // SYN Synchronize
|
||||
META_REMARK_CONTENT (7), // BEL Bell
|
||||
exports ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ;
|
||||
exports ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ᔆᑊᐪᣗᣔ;
|
||||
|
||||
MAIN_ATTRIBUTE_NAME (2), // STX Start of Text
|
||||
MAIN_ATTRIBUTE_BODY (3), // ETX End of Text
|
||||
|
||||
SECTION_HEADER_NAME (1), // SOH Start of Heading
|
||||
SECTION_ATTRIBUTE_NAME (5), // ENQ Enquiry
|
||||
SECTION_ATTRIBUTE_BODY (6), // ACK Acknowledge
|
||||
;
|
||||
|
||||
private final char typeSmurf;
|
||||
|
||||
private ScopicManifest3FrameTLV(int typeSmurf) {
|
||||
this.typeSmurf = (char) typeSmurf;
|
||||
}
|
||||
|
||||
@Override
|
||||
public char ordinalFrameTypeSmurf() {
|
||||
return typeSmurf;
|
||||
}
|
||||
// TODO change api + TODO move all tests to mods to provide test impl
|
||||
uses ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.SitraManifestReportProvider;
|
||||
uses ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.SitraManifestUUIDAppIdProvider;
|
||||
}
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault.sitra;
|
||||
package ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.time.ZoneOffset;
|
||||
|
|
@ -36,10 +36,10 @@ import java.util.List;
|
|||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.fault.BassFaultAnchor;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.manifest.WarpManifestX8;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.manifest.WarpManifestX8Section;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.scopic.iomf.ScopicManifestConstants;
|
||||
import ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ.BassFaultAnchor;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔆᒼᐤᣖᑊᒼ.ᑊᐤᔿᣘ.ScopicManifestConstants;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ.WarpManifestX8;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ.WarpManifestX8Section;
|
||||
|
||||
/// Sitra manifest generator.
|
||||
///
|
||||
|
|
@ -99,7 +99,7 @@ public enum SitraManifestGenerator {
|
|||
}
|
||||
Map<String, String> signals = signalsOpt.get();
|
||||
WarpManifestX8Section section = manifest.makeSection(traceKey.getName());
|
||||
if (SitraManifestSectionWhitePaper.class.equals(traceKey)) {
|
||||
if (BassFaultAnchor.FaultSignalWhitePaper.class.equals(traceKey)) {
|
||||
section.withAttribute(ZilLaLaManyfestoHeader.SIGNAL_FAULT_SECTION_GOAL, ZilLaLaManyfestoSectionGoal.PAPER.toString());
|
||||
} else {
|
||||
if (signals.containsKey(ZilLaLaManyfestoHeader.SIGNAL_FAULT_SECTION_CHAIN_MESSAGE)) {
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault.sitra;
|
||||
package ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
|
|
@ -25,13 +25,13 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault.sitra;
|
||||
package ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.fault.BassFaultAnchor;
|
||||
import ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ.BassFaultAnchor;
|
||||
|
||||
/// Fills an manifest report section.
|
||||
///
|
||||
|
|
@ -43,10 +43,5 @@ public interface SitraManifestReportProvider {
|
|||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
default void fillReport(BassFaultAnchor fault, Map<String, String> tracer) {
|
||||
fillReport(tracer);
|
||||
}
|
||||
|
||||
default void fillReport(Map<String, String> tracer) {
|
||||
}
|
||||
void fillReport(BassFaultAnchor fault, Map<String, String> tracer);
|
||||
}
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault.sitra;
|
||||
package ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ;
|
||||
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.Optional;
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault.sitra;
|
||||
package ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault.sitra;
|
||||
package ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ;
|
||||
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.Random;
|
||||
|
|
@ -25,9 +25,9 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault.sitra;
|
||||
package ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.manifestor.manifest.WarpManifestX0TheMimeType;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ.WarpManifestX0TheMimeType;
|
||||
|
||||
/// ZilLaLa manyfesto protocol constants to build or parse the manifest data uri.
|
||||
///
|
||||
|
|
@ -25,13 +25,11 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault.sitra;
|
||||
package ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ;
|
||||
|
||||
import java.util.Base64;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.fault.BassFaultAnchor;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.WarpManifestorDriver;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.manifest.WarpManifestX8;
|
||||
import ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ.BassFaultAnchor;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.WarpManifestorDriver;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ.WarpManifestX8;
|
||||
|
||||
/// ZilLaLa manyfesto protocol constants to build or parse the manifest data uri.
|
||||
///
|
||||
|
|
@ -63,16 +61,16 @@ public enum ZilLaLaManyfestoGrowlFactory {
|
|||
return buf.toString();
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public String buildFaultScreamBase64(WarpManifestX8 manifest, BassFaultAnchor fault) {
|
||||
byte[] traceManifestBytes = WarpManifestorDriver.writeV3Array(manifest); // TODO: Upgrade to version 6 or 7 ??
|
||||
String trace64 = Base64.getEncoder().encodeToString(traceManifestBytes); // FIXME: report as "normal" text in nostr event
|
||||
StringBuilder buf = new StringBuilder();
|
||||
// TODO: Move base data uri + nostr data uri to provider interface
|
||||
buf.append(ZilLaLaManyfesto.ZILLALA_URI_PREFIX_DATA64);
|
||||
buf.append(trace64);
|
||||
return buf.toString();
|
||||
}
|
||||
// @Deprecated
|
||||
// public String buildFaultScreamBase64(WarpManifestX8 manifest, BassFaultAnchor fault) {
|
||||
// byte[] traceManifestBytes = WarpManifestorDriver.writeV3Array(manifest); // TODO: Upgrade to version 6 or 7 ??
|
||||
// String trace64 = Base64.getEncoder().encodeToString(traceManifestBytes); // FIXME: report as "normal" text in nostr event
|
||||
// StringBuilder buf = new StringBuilder();
|
||||
// // TODO: Move base data uri + nostr data uri to provider interface
|
||||
// buf.append(ZilLaLaManyfesto.ZILLALA_URI_PREFIX_DATA64);
|
||||
// buf.append(trace64);
|
||||
// return buf.toString();
|
||||
// }
|
||||
|
||||
private String buildCutDottedMessage(BassFaultAnchor fault) {
|
||||
String msgShort = fault.getLocalizedMessage();
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault.sitra;
|
||||
package ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ;
|
||||
|
||||
/// Header constants to build or parse the ZilLaLa manyfesto.
|
||||
///
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault.sitra;
|
||||
package ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ;
|
||||
|
||||
/// Champions League campaign to unite the different sections goal arguments.
|
||||
///
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault.sitra;
|
||||
package ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ;
|
||||
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.Set;
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault.sitra;
|
||||
package ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ;
|
||||
|
||||
/// Goal score type for a virtual enumeration counter.
|
||||
///
|
||||
|
|
@ -27,4 +27,4 @@
|
|||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
package love.distributedrebirth.nx01.warp.fault.sitra;
|
||||
package ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ;
|
||||
|
|
@ -25,17 +25,17 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault.report;
|
||||
package ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ᔆᑊᐪᣗᣔ;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.fault.BassFaultAnchor;
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.SitraManifestReportProvider;
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoHeader;
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoSectionChampionsLeague;
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoSectionGoal;
|
||||
import ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ.BassFaultAnchor;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.SitraManifestReportProvider;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ZilLaLaManyfestoHeader;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ZilLaLaManyfestoSectionChampionsLeague;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ZilLaLaManyfestoSectionGoal;
|
||||
|
||||
/// Reports the fault stack trace in java2 format.
|
||||
///
|
||||
|
|
@ -25,18 +25,18 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault.report;
|
||||
package ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ᔆᑊᐪᣗᣔ;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.fault.BassFaultAnchor;
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.SitraManifestReportProvider;
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoHeader;
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoSectionChampionsLeague;
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoSectionGoal;
|
||||
import ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ.BassFaultAnchor;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.SitraManifestReportProvider;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ZilLaLaManyfestoHeader;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ZilLaLaManyfestoSectionChampionsLeague;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ZilLaLaManyfestoSectionGoal;
|
||||
|
||||
/// Reports the fault stack trace in java3 format.
|
||||
///
|
||||
|
|
@ -25,17 +25,18 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault.report;
|
||||
package ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ᔆᑊᐪᣗᣔ;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.util.Map;
|
||||
import java.util.Properties;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.SitraManifestReportProvider;
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoHeader;
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoSectionChampionsLeague;
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoSectionGoal;
|
||||
import ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ.BassFaultAnchor;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.SitraManifestReportProvider;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ZilLaLaManyfestoHeader;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ZilLaLaManyfestoSectionChampionsLeague;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ZilLaLaManyfestoSectionGoal;
|
||||
|
||||
/// Reports sitra warp fault version
|
||||
///
|
||||
|
|
@ -50,7 +51,7 @@ public class ReportSitraFaultWarpVersion implements SitraManifestReportProvider
|
|||
private final static String POM_PROPERTIES_RESOURCE = "/META-INF/maven/" + WARP_FAULT_GROUP_ID + "/" + WARP_FAULT_ARTIFACT_ID + "/pom.properties";
|
||||
|
||||
@Override
|
||||
public void fillReport(Map<String, String> tracer) {
|
||||
public void fillReport(BassFaultAnchor fault, Map<String, String> tracer) {
|
||||
InputStream faultPomVersion = getClass().getResourceAsStream(POM_PROPERTIES_RESOURCE);
|
||||
if (faultPomVersion == null) {
|
||||
return;
|
||||
|
|
@ -25,14 +25,15 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault.report;
|
||||
package ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ᔆᑊᐪᣗᣔ;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.SitraManifestReportProvider;
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoHeader;
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoSectionChampionsLeague;
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoSectionGoal;
|
||||
import ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ.BassFaultAnchor;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.SitraManifestReportProvider;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ZilLaLaManyfestoHeader;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ZilLaLaManyfestoSectionChampionsLeague;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ZilLaLaManyfestoSectionGoal;
|
||||
|
||||
/// Reports runtime memory statistics.
|
||||
///
|
||||
|
|
@ -44,7 +45,7 @@ public class ReportSitraRuntimeChapter implements SitraManifestReportProvider {
|
|||
private static final Runtime RUNTIME = Runtime.getRuntime();
|
||||
|
||||
@Override
|
||||
public void fillReport(Map<String, String> tracer) {
|
||||
public void fillReport(BassFaultAnchor fault, Map<String, String> tracer) {
|
||||
tracer.put(ZilLaLaManyfestoHeader.SIGNAL_FAULT_SECTION_GOAL, GOAL_SCORE);
|
||||
tracer.put("VM-Version", Runtime.version().toString());
|
||||
tracer.put("VM-Max-Memory", Long.toString(RUNTIME.maxMemory()));
|
||||
|
|
@ -25,13 +25,14 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault.report;
|
||||
package ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ᔆᑊᐪᣗᣔ;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.SitraManifestReportProvider;
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoHeader;
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoSectionGoal;
|
||||
import ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ.BassFaultAnchor;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.SitraManifestReportProvider;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ZilLaLaManyfestoHeader;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ZilLaLaManyfestoSectionGoal;
|
||||
|
||||
/// Reports runtime threads states.
|
||||
///
|
||||
|
|
@ -40,7 +41,7 @@ import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoSectionGoal
|
|||
public class ReportSitraRuntimeThreads implements SitraManifestReportProvider {
|
||||
|
||||
@Override
|
||||
public void fillReport(Map<String, String> tracer) {
|
||||
public void fillReport(BassFaultAnchor fault, Map<String, String> tracer) {
|
||||
tracer.put(ZilLaLaManyfestoHeader.SIGNAL_FAULT_SECTION_GOAL, ZilLaLaManyfestoSectionGoal.BUTTER.toString());
|
||||
Map<Thread, StackTraceElement[]> stacks = Thread.getAllStackTraces();
|
||||
for (Thread thread : stacks.keySet()) {
|
||||
|
|
@ -48,7 +49,7 @@ public class ReportSitraRuntimeThreads implements SitraManifestReportProvider {
|
|||
String threadName = thread.getName();
|
||||
String threadState = thread.getState().name();
|
||||
String traceLine = trackStack.length==0?"":trackStack[0].toString();
|
||||
String reportKey = threadState + "-ID_" + thread.getId();
|
||||
String reportKey = threadState + "-ID_" + thread.threadId();
|
||||
String reportValue = thread.getClass().getName() + " (" + threadName + ") " + traceLine;
|
||||
tracer.put(reportKey, reportValue);
|
||||
}
|
||||
|
|
@ -25,16 +25,17 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault.report;
|
||||
package ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ᔆᑊᐪᣗᣔ;
|
||||
|
||||
import java.lang.management.ManagementFactory;
|
||||
import java.lang.management.OperatingSystemMXBean;
|
||||
import java.util.Map;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.SitraManifestReportProvider;
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoHeader;
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoSectionChampionsLeague;
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoSectionGoal;
|
||||
import ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ.BassFaultAnchor;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.SitraManifestReportProvider;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ZilLaLaManyfestoHeader;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ZilLaLaManyfestoSectionChampionsLeague;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ZilLaLaManyfestoSectionGoal;
|
||||
|
||||
/// Reports system memory statistics.
|
||||
///
|
||||
|
|
@ -47,7 +48,7 @@ public class ReportSitraSystemChapter implements SitraManifestReportProvider {
|
|||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public void fillReport(Map<String, String> tracer) {
|
||||
public void fillReport(BassFaultAnchor fault, Map<String, String> tracer) {
|
||||
tracer.put(ZilLaLaManyfestoHeader.SIGNAL_FAULT_SECTION_GOAL, GOAL_SCORE);
|
||||
tracer.put("OS-Name", SYSTEM.getName());
|
||||
tracer.put("OS-Arch", SYSTEM.getArch());
|
||||
|
|
@ -25,14 +25,15 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault.report;
|
||||
package ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ᔆᑊᐪᣗᣔ;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.SitraManifestReportProvider;
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoHeader;
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoSectionChampionsLeague;
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoSectionGoal;
|
||||
import ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ.BassFaultAnchor;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.SitraManifestReportProvider;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ZilLaLaManyfestoHeader;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ZilLaLaManyfestoSectionChampionsLeague;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ZilLaLaManyfestoSectionGoal;
|
||||
|
||||
/// Reports the system environment variables.
|
||||
///
|
||||
|
|
@ -43,7 +44,7 @@ public class ReportSitraSystemEnvironment implements SitraManifestReportProvider
|
|||
private static final String GOAL_SCORE = ZilLaLaManyfestoSectionGoal.BUBBLES.spaceCadet(ZilLaLaManyfestoSectionChampionsLeague.BUBBLES_ENVIRONMENT);
|
||||
|
||||
@Override
|
||||
public void fillReport(Map<String, String> tracer) {
|
||||
public void fillReport(BassFaultAnchor fault, Map<String, String> tracer) {
|
||||
tracer.put(ZilLaLaManyfestoHeader.SIGNAL_FAULT_SECTION_GOAL, GOAL_SCORE);
|
||||
for (String key : System.getenv().keySet()) {
|
||||
String value = System.getenv(key);
|
||||
|
|
@ -25,15 +25,16 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault.report;
|
||||
package ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ᔆᑊᐪᣗᣔ;
|
||||
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.SitraManifestReportProvider;
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoHeader;
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoSectionChampionsLeague;
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoSectionGoal;
|
||||
import ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ.BassFaultAnchor;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.SitraManifestReportProvider;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ZilLaLaManyfestoHeader;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ZilLaLaManyfestoSectionChampionsLeague;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ZilLaLaManyfestoSectionGoal;
|
||||
|
||||
/// Reports the system locale.
|
||||
///
|
||||
|
|
@ -44,7 +45,7 @@ public class ReportSitraSystemLocale implements SitraManifestReportProvider {
|
|||
private static final String GOAL_SCORE = ZilLaLaManyfestoSectionGoal.BUBBLES.spaceCadet(ZilLaLaManyfestoSectionChampionsLeague.BUBBLES_LOCALE);
|
||||
|
||||
@Override
|
||||
public void fillReport(Map<String, String> tracer) {
|
||||
public void fillReport(BassFaultAnchor fault, Map<String, String> tracer) {
|
||||
tracer.put(ZilLaLaManyfestoHeader.SIGNAL_FAULT_SECTION_GOAL, GOAL_SCORE);
|
||||
Locale locale = Locale.getDefault();
|
||||
tracer.put("Locale-Language", locale.getLanguage());
|
||||
|
|
@ -25,14 +25,15 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault.report;
|
||||
package ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ᔆᑊᐪᣗᣔ;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.SitraManifestReportProvider;
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoHeader;
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoSectionChampionsLeague;
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoSectionGoal;
|
||||
import ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ.BassFaultAnchor;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.SitraManifestReportProvider;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ZilLaLaManyfestoHeader;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ZilLaLaManyfestoSectionChampionsLeague;
|
||||
import ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ZilLaLaManyfestoSectionGoal;
|
||||
|
||||
/// Reports all the system properties.
|
||||
///
|
||||
|
|
@ -43,7 +44,7 @@ public class ReportSitraSystemProperties implements SitraManifestReportProvider
|
|||
private static final String GOAL_SCORE = ZilLaLaManyfestoSectionGoal.BUBBLES.spaceCadet(ZilLaLaManyfestoSectionChampionsLeague.BUBBLES_PROPERTIES);
|
||||
|
||||
@Override
|
||||
public void fillReport(Map<String, String> tracer) {
|
||||
public void fillReport(BassFaultAnchor fault, Map<String, String> tracer) {
|
||||
tracer.put(ZilLaLaManyfestoHeader.SIGNAL_FAULT_SECTION_GOAL, GOAL_SCORE);
|
||||
for (Object keyObj : System.getProperties().keySet()) {
|
||||
if (keyObj instanceof String) {
|
||||
|
|
@ -27,4 +27,4 @@
|
|||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
package love.distributedrebirth.nx01.warp.fault.report;
|
||||
package ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ᔆᑊᐪᣗᣔ;
|
||||
|
|
@ -25,15 +25,16 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package love.distributedrebirth.nx01.warp.fault;
|
||||
package ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.SitraManifestGenerator;
|
||||
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoGrowlFactory;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.WarpManifestorDriver;
|
||||
import love.distributedrebirth.nx01.warp.manifestor.manifest.WarpManifestX8;
|
||||
import ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ.BassFaultAnchor;
|
||||
import ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ.FaultBeanInstantiation;
|
||||
import ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᣘᣔᓑᒻᐪ.FaultStreamDelegate;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.WarpManifestorDriver;
|
||||
import ᒢᣟᐧ.ᒡᒢᣔᣗᣖ.ᔿᣔᣕᑊᣘᓫᔆᐪᐤᣗ.ᔿᣔᣕᑊᣘᓫᔆᐪ.WarpManifestX8;
|
||||
|
||||
/// @author للَّٰهِilLצسُو
|
||||
/// @version ©Δ∞ 仙上主天
|
||||
|
|
@ -125,7 +126,7 @@ public class FaultSignalTraceTest {
|
|||
String sitraText = WarpManifestorDriver.writeV2String(manifest);
|
||||
System.out.println(sitraText);
|
||||
Assertions.assertNotNull(sitraText);
|
||||
Assertions.assertTrue(sitraText.contains("Name: love.distributedrebirth.nx01.warp.fault.FaultSignalTraceTest$SpaceA"));
|
||||
Assertions.assertTrue(sitraText.contains("Name: ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.FaultSignalTraceTest$SpaceA"));
|
||||
Assertions.assertTrue(sitraText.contains("Fault-Section-Goal: ROCK summit"));
|
||||
Assertions.assertTrue(sitraText.contains("Fault-Section-Chain-Message: The signal trace root"));
|
||||
Assertions.assertTrue(sitraText.contains("Fault-Section-Chain-Iceberg: java.lang.IllegalArgumentException"));
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ᔆᑊᐪᣗᣔ.ReportSitraFaultStackTraceJava3
|
||||
ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ᔆᑊᐪᣗᣔ.ReportSitraFaultWarpVersion
|
||||
ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ᔆᑊᐪᣗᣔ.ReportSitraRuntimeChapter
|
||||
ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ᔆᑊᐪᣗᣔ.ReportSitraRuntimeThreads
|
||||
ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ᔆᑊᐪᣗᣔ.ReportSitraSystemChapter
|
||||
ᒢᣘᣟᣟ.ᓫᣕᐪᓫᣗ.ᙆᑊᒻᒻᣔᒻᣔ.ᔆᑊᐪᣗᣔ.ReportSitraSystemLocale
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue