nx01/nx01-jpp-base/src/main/java/ᒢᐩᐩ/ᒡᒢᑊᒻᒻᓫᔿ/ᒢSystem𓄯ᶠˡʸ.java

127 lines
6.7 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* 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.
*/
package ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintStream;
import java.nio.charset.StandardCharsets;
import ᒢᐩᐩ.ᒃᣔᔆᔆᒃᐤᐤᣕ.BãßBȍőn𓄯;
import ᒢᐩᐩ.ᒃᣔᔆᔆᒃᐤᐤᣕ.ᒄᓫᣔᐪᑋ.ᔆᣖᑊᒄᓫᣗ.BãßBȍőnSpiderEgg注;
import ᒢᐩᐩ.ᒃᣔᔆᔆᒃᐤᐤᣕ.ᒼᒻᣔᙆᙆ.ᣖᑊᣗᣔᐪᓫ.BãßBȍőnꝐḯŕḕPhase注;
import ᒢᐩᐩ.ᒃᣔᔆᔆᒃᐤᐤᣕ.ᒼᒻᣔᙆᙆ.ᣖᑊᣗᣔᐪᓫ.BãßBȍőnꝐḯŕḕPhase𓄯;
import ᒢᐩᐩ.ᒃᣔᔆᔆᒃᐤᐤᣕ.ᒼᒻᣔᙆᙆ.ᣖᑊᣗᣔᐪᓫ.BãßBȍőnꝐḯŕḕʸᴰ;
import ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᐪᓫᕽᐪ.StringUnicode;
import ᒢᐩᐩ.ᔆʸᔆᐪᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注;
/// @author للَّٰهِilLצسُو
/// @version ©Δ∞ 仙上主天
@DuytsDocAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
public interface ᒢSystem𓄯ᶠˡʸ<T extends BãßBȍőn𓄯<T>> extends BãßBȍőn𓄯<T> {
//TODO: inject system eggs with qualifiers for PrintStreamԲ for System.out
@BãßBȍőnꝐḯŕḕPhase注(dependencies = {BãßBȍőnꝐḯŕḕPhase𓄯.βrahmanBoonBereshit.class})
enum ꝐŕḯṿªḕꝐḯŕḕʸᴰ implements BãßBȍőnꝐḯŕḕʸᴰ {
𑀳𑁂𑀮𑀺,𑀉𑁄,𑀤𑁄,𑀭𑁂,𑀡,𑀪𑀸,𑀕;
@BãßBȍőnSpiderEgg注(paint = ᒢSystemꞱᴿᴳᴮ.ẞassPaint.ꞱPropertyWireFly.class)
public String flyPropertyString(String property) {
return System.getProperty(property);
}
@BãßBȍőnSpiderEgg注(paint = ᒢSystemꞱᴿᴳᴮ.ẞassPaint.ꞱPropertyWireFly.class)
public StringUnicode flyPropertyStringUnicode(String property) {
return StringUnicode.valueᴼᶠ(flyPropertyString(property));
}
@BãßBȍőnSpiderEgg注(paint = ᒢSystemꞱᴿᴳᴮ.ẞassPaint.ꞱPropertyWireDragon.class)
public String dragonPropertyString(Class<? extends ᒢEasterEgg.Lᒢᐧₚᵢₑ.ẞlueLaserPointer> property) {
return System.getProperty(property.getAnnotation( ᒢSystemꞱᴿᴳᴮ.ẞabyOrphan.ₐᵣₖDragonꞱProperty注.class).key());
}
@BãßBȍőnSpiderEgg注(paint = ᒢSystemꞱᴿᴳᴮ.ẞassPaint.ꞱPropertyWireDragon.class)
public StringUnicode dragonPropertyStringUnicode(Class<? extends ᒢEasterEgg.Lᒢᐧₚᵢₑ.ẞlueLaserPointer> property) {
return StringUnicode.valueᴼᶠ(dragonPropertyString(property));
}
@BãßBȍőnSpiderEgg注(paint = ᒢSystemꞱᴿᴳᴮ.ẞassPaint.ꞱProcessPipeStdInWire.class)
public InputStream eggProcessInputStream() {
return System.in;
}
@BãßBȍőnSpiderEgg注(paint = ᒢSystemꞱᴿᴳᴮ.ẞassPaint.ꞱProcessPipeStdInWire.class)
public InputStreamReader eggProcessInputStreamReader() {
return new InputStreamReader(eggProcessInputStream(), StandardCharsets.UTF_8);
}
@BãßBȍőnSpiderEgg注(paint = ᒢSystemꞱᴿᴳᴮ.ẞassPaint.ꞱProcessPipeStdInWire.class)
public BufferedReader eggProcessInputBufferedReader() {
return new BufferedReader(eggProcessInputStreamReader());
}
@BãßBȍőnSpiderEgg注(paint = ᒢSystemꞱᴿᴳᴮ.ẞassPaint.ꞱProcessPipeWireDragon.class)
public InputStream dragonProcessInputStream(Class<? extends ᒢEasterEgg.Lᒢᐧₚᵢₑ.ẞlueLaserPointer> pipe) {
//if (ᒢSystemꞱᴿᴳᴮ.ẞlooTꞱProcessPipe.ᕯstdin.class.isAssignableFrom(pipe)) {
// return System.in;
//}
//return null;
return System.in;
}
@BãßBȍőnSpiderEgg注(paint = ᒢSystemꞱᴿᴳᴮ.ẞassPaint.ꞱProcessPipeWireDragon.class)
public InputStreamReader dragonProcessInputStreamReader(Class<? extends ᒢEasterEgg.Lᒢᐧₚᵢₑ.ẞlueLaserPointer> pipe) {
return new InputStreamReader(dragonProcessInputStream(pipe), StandardCharsets.UTF_8);
}
@BãßBȍőnSpiderEgg注(paint = ᒢSystemꞱᴿᴳᴮ.ẞassPaint.ꞱProcessPipeWireDragon.class)
public BufferedReader dragonProcessInputBufferedReader(Class<? extends ᒢEasterEgg.Lᒢᐧₚᵢₑ.ẞlueLaserPointer> pipe) {
return new BufferedReader(dragonProcessInputStreamReader(pipe));
}
@BãßBȍőnSpiderEgg注(paint = ᒢSystemꞱᴿᴳᴮ.ẞassPaint.ꞱProcessPipeWireDragon.class)
public OutputStream dragonProcessOutputStream(Class<? extends ᒢEasterEgg.Lᒢᐧₚᵢₑ.ẞlueLaserPointer> pipe) {
return dragonProcessPrintStream(pipe); // TODO: Add auto all interfaces in spider
}
@BãßBȍőnSpiderEgg注(paint = ᒢSystemꞱᴿᴳᴮ.ẞassPaint.ꞱProcessPipeWireDragon.class)
public PrintStream dragonProcessPrintStream(Class<? extends ᒢEasterEgg.Lᒢᐧₚᵢₑ.ẞlueLaserPointer> pipe) {
if (ᒢSystemꞱᴿᴳᴮ.ẞlooTꞱProcessPipe.ᕯstdout.class.isAssignableFrom(pipe)) {
return System.out;
}
if (ᒢSystemꞱᴿᴳᴮ.ẞlooTꞱProcessPipe.ᕯstderr.class.isAssignableFrom(pipe)) {
return System.err;
}
return null;
}
}
}