Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

Commit

Permalink
@ School first
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyxlandlee committed Dec 25, 2020
0 parents commit 3df13c6
Show file tree
Hide file tree
Showing 5 changed files with 112 additions and 0 deletions.
12 changes: 12 additions & 0 deletions FileSpliterator.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="KotlinJavaRuntime" level="project" />
</component>
</module>
39 changes: 39 additions & 0 deletions FileSpliterator.ipr
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
</profile>
<version value="1.0" />
</component>
<component name="Kotlin2JvmCompilerArguments">
<option name="jvmTarget" value="1.8" />
</component>
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/FileSpliterator.iml" filepath="$PROJECT_DIR$/FileSpliterator.iml" />
</modules>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_10" default="true" project-jdk-name="10" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
<component name="libraryTable">
<library name="KotlinJavaRuntime">
<CLASSES>
<root url="jar://$KOTLIN_BUNDLED$/lib/kotlin-stdlib.jar!/" />
<root url="jar://$KOTLIN_BUNDLED$/lib/kotlin-reflect.jar!/" />
<root url="jar://$KOTLIN_BUNDLED$/lib/kotlin-test.jar!/" />
<root url="jar://$KOTLIN_BUNDLED$/lib/kotlin-stdlib-jdk7.jar!/" />
<root url="jar://$KOTLIN_BUNDLED$/lib/kotlin-stdlib-jdk8.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES>
<root url="jar://$KOTLIN_BUNDLED$/lib/kotlin-stdlib-sources.jar!/" />
<root url="jar://$KOTLIN_BUNDLED$/lib/kotlin-reflect-sources.jar!/" />
<root url="jar://$KOTLIN_BUNDLED$/lib/kotlin-test-sources.jar!/" />
<root url="jar://$KOTLIN_BUNDLED$/lib/kotlin-stdlib-jdk7-sources.jar!/" />
<root url="jar://$KOTLIN_BUNDLED$/lib/kotlin-stdlib-jdk8-sources.jar!/" />
</SOURCES>
</library>
</component>
</project>
37 changes: 37 additions & 0 deletions FileSpliterator.iws
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="2e837d0e-f64d-441f-982b-ceea8ceb799a" name="Default Changelist" comment="" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="FileTemplateManagerImpl">
<option name="RECENT_TEMPLATES">
<list>
<option value="Class" />
<option value="Kotlin File" />
</list>
</option>
</component>
<component name="ProjectId" id="1m8ZiByVnXffLATLAZZxiMGD7Be" />
<component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent">
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
</component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="2e837d0e-f64d-441f-982b-ceea8ceb799a" name="Default Changelist" comment="" />
<created>1608877305551</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1608877305551</updated>
</task>
<servers />
</component>
</project>
18 changes: 18 additions & 0 deletions src/io/github/teddyxlandlee/nios/filesplit/main.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package io.github.teddyxlandlee.nios.filesplit

import kotlin.system.exitProcess

fun main(args: Array<String>) {
if (args.size < 2) {
help()
}
}

fun help() {
println("Usage: java -jar file-spliterator-${version}.jar <encode|decode> <filename> [args]\n" +
"encode: arg: filename\n" +
"decoee: arg: directory name\n" +
"more args:\n [max_one_file_size] default 99.4MB\n" +
"[directory name] default filesplit-<origin_filename>");
exitProcess(1);
}
6 changes: 6 additions & 0 deletions src/io/github/teddyxlandlee/nios/filesplit/version.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package io.github.teddyxlandlee.nios.filesplit

const val major: Byte = 0
const val minor: Byte = 1
const val micro: Byte = 0
const val version: String = "0.1.0"

0 comments on commit 3df13c6

Please sign in to comment.