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 w ww. j av a2 s . c om 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 . O u t 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 O u t p u t e x t e n d s O u t 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 c o u n t ; p r i v a t e O u t p u t S t r e a m o u t ; p u b l i c O u t p u t ( O u t p u t S t r e a m o u t ) { t h i s ( o u t , D E F A U L T _ B U F F E R _ S I Z E ) ; } p u b l i c O u t p u t ( O u t p u t S t r e a m o u t , i n t b u f f e r S i z e ) { t h i s . o u t = o u t ; b u f = n e w b y t e [ b u f f e r S i z e ] ; } p r i v a t e v o i d f l u s h B u f f e r ( ) t h r o w s I O E x c e p t i o n { i f ( c o u n t >