Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
9f4d840 committed Jul 16, 2020
1 parent dcd2358 commit ae5f0df
Show file tree
Hide file tree
Showing 35 changed files with 125 additions and 89 deletions.
37 changes: 36 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,37 @@
# PosMessageFormat
iso8583 Android/Java
iso8583 message format for Android/Java

![](img/s1.png)


#### how to use:


Add it in your root build.gradle at the end of repositories:

allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency

dependencies {
implementation 'com.github.CrazyDudo:PosMessageFormat:Tag'
}





#### todo:

spdh




---

[Java8583](https://github.com/Ajsgn/Java8583 "Java8583")
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

import androidx.appcompat.app.AppCompatActivity;

import com.example.iso8583.core.Iso8583Message;
import com.example.iso8583.core.Iso8583MessageFactory;
import com.example.iso8583.quickstart.SingletonFactory;
import com.iso8583.core.Iso8583Message;
import com.iso8583.core.Iso8583MessageFactory;
import com.iso8583.quickstart.SingletonFactory;

public class MainActivity extends AppCompatActivity implements View.OnClickListener {
private static final String TAG = "MainActivity";
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/java/com/example/posmessageformat/Test.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.example.posmessageformat;

import com.example.iso8583.core.Iso8583Message;
import com.example.iso8583.core.Iso8583MessageFactory;
import com.example.iso8583.quickstart.SingletonFactory;
import com.iso8583.core.Iso8583Message;
import com.iso8583.core.Iso8583MessageFactory;
import com.iso8583.quickstart.SingletonFactory;

public class Test {

Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
app:layout_constraintVertical_bias="0.001" />

<Button
android:textColor="@android:color/white"
android:padding="5dp"
android:background="@color/colorPrimary"
android:id="@+id/button"
Expand Down
Binary file added img/s1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.iso8583;
package com.iso8583;

import android.content.Context;

Expand All @@ -21,6 +21,6 @@ public class ExampleInstrumentedTest {
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
assertEquals("com.example.iso8583.test", appContext.getPackageName());
assertEquals("com.iso8583.test", appContext.getPackageName());
}
}
2 changes: 1 addition & 1 deletion iso8583/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.iso8583">
package="com.iso8583">

/
</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.iso8583.constant;
package com.iso8583.constant;

/**
* 消息头常量表示
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.iso8583.core;
package com.iso8583.core;

import com.example.iso8583.constant.Iso8583ConstantValue;
import com.example.iso8583.field.Iso8583Field;
import com.example.iso8583.field.Iso8583FieldType;
import com.example.iso8583.field.Iso8583FillBlankStrategy;
import com.example.iso8583.special.SpecialField;
import com.example.iso8583.util.EncodeUtil;
import com.example.iso8583.util.StringUtil;
import com.iso8583.constant.Iso8583ConstantValue;
import com.iso8583.field.Iso8583Field;
import com.iso8583.field.Iso8583FieldType;
import com.iso8583.field.Iso8583FillBlankStrategy;
import com.iso8583.special.SpecialField;
import com.iso8583.util.EncodeUtil;
import com.iso8583.util.StringUtil;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.iso8583.core;
package com.iso8583.core;

import com.example.iso8583.constant.Iso8583ConstantValue;
import com.example.iso8583.field.Iso8583DataHeader;
import com.example.iso8583.field.Iso8583FieldType;
import com.example.iso8583.special.SpecialField;
import com.example.iso8583.util.EncodeUtil;
import com.iso8583.constant.Iso8583ConstantValue;
import com.iso8583.field.Iso8583DataHeader;
import com.iso8583.field.Iso8583FieldType;
import com.iso8583.special.SpecialField;
import com.iso8583.util.EncodeUtil;

import java.io.ByteArrayInputStream;
import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.iso8583.ext.tlv;
package com.iso8583.ext.tlv;

import java.util.LinkedList;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.iso8583.ext.tlv;
package com.iso8583.ext.tlv;

/**
* <p>TLV字段解析器</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.iso8583.ext.tlv;
package com.iso8583.ext.tlv;

/**
* <p>TLV对象中每一段数据的抽象</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.iso8583.ext.tlv.parser;
package com.iso8583.ext.tlv.parser;


import com.example.iso8583.ext.tlv.TlvObject;
import com.example.iso8583.ext.tlv.TlvValue;
import com.iso8583.ext.tlv.TlvObject;
import com.iso8583.ext.tlv.TlvValue;

import java.util.LinkedHashMap;
import java.util.LinkedList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.iso8583.ext.tlv.parser;
package com.iso8583.ext.tlv.parser;


import com.example.iso8583.ext.tlv.TlvValue;
import com.iso8583.ext.tlv.TlvValue;

/**
* 55域字段抽象
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.iso8583.ext.tlv.parser;
package com.iso8583.ext.tlv.parser;


import com.example.iso8583.ext.tlv.TlvObject;
import com.example.iso8583.ext.tlv.TlvParser;
import com.example.iso8583.ext.tlv.TlvValue;
import com.example.iso8583.util.EncodeUtil;
import com.example.iso8583.util.IoUtil;
import com.iso8583.ext.tlv.TlvObject;
import com.iso8583.ext.tlv.TlvParser;
import com.iso8583.ext.tlv.TlvValue;
import com.iso8583.util.EncodeUtil;
import com.iso8583.util.IoUtil;

import java.io.ByteArrayInputStream;
import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.iso8583.ext.tlv.parser;
package com.iso8583.ext.tlv.parser;


import com.example.iso8583.ext.tlv.TlvParser;
import com.iso8583.ext.tlv.TlvParser;

/**
* <p>Tlv字段解析器工厂</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.iso8583.ext.tlv.parser;
package com.iso8583.ext.tlv.parser;

/**
* <p>解析器类型枚举</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.iso8583.ext.tlv.parser;
package com.iso8583.ext.tlv.parser;


import com.example.iso8583.ext.tlv.TlvValue;
import com.iso8583.ext.tlv.TlvValue;

/**
* <p>TlvVlue做了包访问限制,使用者不需要关注实现,调用不依赖实现</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.iso8583.field;
package com.iso8583.field;

/**
* <p>消息头报文类型声明类</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.iso8583.field;
package com.iso8583.field;

/**
* <p>8583报文字段抽象,不可变类<p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.iso8583.field;
package com.iso8583.field;

/**
* <p>字段类型抽象</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.iso8583.field;
package com.iso8583.field;

/**
* <p>填充策略</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.iso8583.quickstart;
package com.iso8583.quickstart;

import com.example.iso8583.core.Iso8583MessageFactory;
import com.example.iso8583.field.Iso8583DataHeader;
import com.example.iso8583.field.Iso8583FieldType;
import com.example.iso8583.field.Iso8583FillBlankStrategy;
import com.iso8583.core.Iso8583MessageFactory;
import com.iso8583.field.Iso8583DataHeader;
import com.iso8583.field.Iso8583FieldType;
import com.iso8583.field.Iso8583FillBlankStrategy;

import java.nio.charset.Charset;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.iso8583.quickstart;
package com.iso8583.quickstart;


import com.example.iso8583.core.Iso8583MessageFactory;
import com.iso8583.core.Iso8583MessageFactory;

/**
* quick start
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.iso8583.quickstart.special;
package com.iso8583.quickstart.special;


import com.example.iso8583.field.Iso8583FieldType;
import com.example.iso8583.special.SpecialField;
import com.iso8583.field.Iso8583FieldType;
import com.iso8583.special.SpecialField;

/**
* <p>一个简单的62域特殊处理器</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.iso8583.special;
package com.iso8583.special;


import com.example.iso8583.field.Iso8583FieldType;
import com.iso8583.field.Iso8583FieldType;

/**
* <p>特殊字段处理器</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.iso8583.test;
package com.iso8583.test;


import com.example.iso8583.core.Iso8583Message;
import com.example.iso8583.core.Iso8583MessageFactory;
import com.example.iso8583.quickstart.SingletonFactory;
import com.example.iso8583.util.EncodeUtil;
import com.example.iso8583.util.MacUtil;
import com.example.iso8583.util.PinUtil;
import com.iso8583.core.Iso8583Message;
import com.iso8583.core.Iso8583MessageFactory;
import com.iso8583.quickstart.SingletonFactory;
import com.iso8583.util.EncodeUtil;
import com.iso8583.util.MacUtil;
import com.iso8583.util.PinUtil;

/**
* <p>真实数据测试演示代码</p>
Expand Down
Loading

0 comments on commit ae5f0df

Please sign in to comment.