Back to project page HexNanoController_Android.
The source code is released under:
Code license GNU GPL v2 http://www.gnu.org/licenses/gpl.html Content license CC BY-NC-SA 4.0 http://creativecommons.org/licenses/by-nc-sa/4.0/
If you think the Android project HexNanoController_Android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
??p a c k a g e c o m . h e x a i r b o t . h e x m i n i . u t i l ; /*from ww w . ja va 2 s . c o m*/ i m p o r t j a v a . i o . B y t e A r r a y O u t p u t S t r e a m ; i m p o r t j a v a . i o . E O F E x c e p t i o n ; i m p o r t j a v a . i o . I O E x c e p t i o n ; i m p o r t j a v a . i o . I n p u t S t r e a m ; i m p o r t j a v a . i o . U T F D a t a F o r m a t E x c e p t i o n ; p u b l i c c l a s s I n p u t e x t e n d s I n p u t S t r e a m { p r i v a t e s t a t i c f i n a l i n t D E F A U L T _ B U F F E R _ S I Z E = 1 0 2 4 ; p r i v a t e b y t e [ ] b u f ; p r i v a t e i n t p o s ; p r i v a t e i n t c o u n t ; p r i v a t e I n p u t S t r e a m i n ; p u b l i c I n p u t ( I n p u t S t r e a m i n ) { t h i s ( i n , D E F A U L T _ B U F F E R _ S I Z E ) ; } p u b l i c I n p u t ( I n p u t S t r e a m i n , i n t b u f f e r S i z e ) { t h i s . i n = i n ; b u f = n e w b y t e [ b u f f e r S i z e ] ; } p u b l i c v o i d c l o s e ( ) t h r o w s I O E x c e p t i o n { b u f = n u l l ; i n . c l o s e ( ) ; } p u b l i c i n t r e a d ( ) t h r o w s I O E x c e p t i o n { i f ( p o s >