code complete for yaml transformation

This commit is contained in:
2026-11-13 23:07:29 +05:30
parent c59ee0067a
commit a91f72ffd2
28 changed files with 687 additions and 7155 deletions
@@ -0,0 +1,41 @@
/*
* Copyright (c) DuxTechnica
*
* Licensed under the DuxTechnica Limited Use Source Code License Agreement (DT-LUSCL); you may not
* use this file except in compliance with the License. You may obtain a copy of the License by
* contacting:
*
* Dux Technica, [email protected]
*
* This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific language governing permissions and
* limitations under the License.
*/
package dxt.moe.codec.toml;
import dxt.moe.codec.MoeCodec;
import dxt.moe.codec.MoeDecoder;
import dxt.moe.codec.MoeEncoder;
/**
* @author indroneel
*/
public class TomlCodec implements MoeCodec {
@Override
public String getFormat() {
return "toml";
}
@Override
public MoeDecoder decoder() {
return new TomlDecoder();
}
@Override
public MoeEncoder encoder() {
return new TomlEncoder();
}
}
@@ -0,0 +1,51 @@
/*
* Copyright (c) DuxTechnica
*
* Licensed under the DuxTechnica Limited Use Source Code License Agreement (DT-LUSCL); you may not
* use this file except in compliance with the License. You may obtain a copy of the License by
* contacting:
*
* Dux Technica, [email protected]
*
* This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific language governing permissions and
* limitations under the License.
*/
package dxt.moe.codec.toml;
import dxt.moe.app.CodecException;
import dxt.moe.app.Moe;
import dxt.moe.codec.MoeDecoder;
import dxt.moe.model.AnyData;
import java.io.InputStream;
import java.util.List;
import java.util.logging.Logger;
/**
* @author indroneel
*/
public class TomlDecoder implements MoeDecoder {
private static final Logger L = Logger.getLogger(TomlDecoder.class.getName());
////////////////////////////////////////////////////////////////////////////////////////////////
// Methods of interface MoeDecoder
@Override
public void setSource(byte[] data) throws CodecException {
}
@Override
public void setSource(InputStream input) throws CodecException {
}
@Override
public AnyData decode(List<Moe.Options> options) throws CodecException {
return null;
}
}
@@ -0,0 +1,38 @@
/*
* Copyright (c) DuxTechnica
*
* Licensed under the DuxTechnica Limited Use Source Code License Agreement (DT-LUSCL); you may not
* use this file except in compliance with the License. You may obtain a copy of the License by
* contacting:
*
* Dux Technica, [email protected]
*
* This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific language governing permissions and
* limitations under the License.
*/
package dxt.moe.codec.toml;
import dxt.moe.codec.MoeEncoder;
import dxt.moe.model.AnyData;
/**
* @author indroneel
*/
public class TomlEncoder implements MoeEncoder {
////////////////////////////////////////////////////////////////////////////////////////////////
// Methods of interface MoeEncoder
@Override
public byte[] convert(AnyData data) {
return new byte[0];
}
@Override
public byte[] convert(AnyData data, boolean pretty) {
return new byte[0];
}
}
@@ -0,0 +1,15 @@
#
# Copyright (c) DuxTechnica
#
# Licensed under the DuxTechnica Limited Use Source Code License Agreement (DT-LUSCL); you may not
# use this file except in compliance with the License. You may obtain a copy of the License by
# contacting:
#
# Dux Technica, [email protected]
#
# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
# either express or implied. See the License for the specific language governing permissions and
# limitations under the License.
#
dxt.moe.codec.toml.TomlCodec