flexdatatype.Hashtable import

36 views
Skip to first unread message

marcebil

unread,
Jun 7, 2013, 7:46:27 AM6/7/13
to zx...@googlegroups.com
I am trying to import "com.google.zxing.common.flexdatatypes.HashTable", but the flexdatatype library is not in zxing2.1 nor zxing2.2, so it gives me the message:
     "The import com.google.zxing.common.flexdatatypes cannot be resolved"
I can not find it anywhere, also nobody is asking questions about it, so i asume ... i don know! 
So, how can i include this package?

thanks

Lachezar Dobrev

unread,
Jun 7, 2013, 7:51:45 AM6/7/13
to marcebil, zx...@googlegroups.com
That's Action Script.
And the error message suggests you're trying to import it in Java.


2013/6/7 marcebil <marc...@gmail.com>:

marcebil

unread,
Jun 7, 2013, 8:34:40 AM6/7/13
to zx...@googlegroups.com, marcebil
I know, that's the problem, that i can not import it. 
But I can not found the flexdatatypes library, o directory, o package in zxing

Sean Owen

unread,
Jun 7, 2013, 9:24:26 AM6/7/13
to zx...@googlegroups.com, marcebil
This doesn't make any sense. You can't possibly need Flex classes in a Java program. You'll have to explain what you are really doing.

marcebil

unread,
Jun 7, 2013, 10:05:26 AM6/7/13
to zx...@googlegroups.com, marcebil
When decoding a qrcode bitmap, i am getting the NotFoundExcpetion. 
So i will like to apply the TRY_HARDER option, as in:

Hashtable<DecodeHintType, Object> hint = new Hashtable<DecodeHintType, Object>();
hint.put(DecodeHintType.TRY_HARDER, BarcodeFormat.QR_CODE);

the hastable needs to be imported by:
import com.google.zxing.common.flexdatatypes.HashTable;

But i didn't found flexdatatypes, not in zxing 2.1 o zxing 2.2

Sean Owen

unread,
Jun 7, 2013, 10:15:52 AM6/7/13
to zx...@googlegroups.com, marcebil
No, it needs the Java type java.util.Hashtable. (And you can use Map/HashMap actually). It is a safe bet that one language will never ever need types from a completely different language.

marcebil

unread,
Jun 7, 2013, 10:37:18 AM6/7/13
to zx...@googlegroups.com, marcebil
Ok, thanks, i took it from an example, but didn't notice that i was using types from different language.
Reply all
Reply to author
Forward
0 new messages