<filename>refinery/units/formats/java/jvstr.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from .. import Unit
from ....lib.java import JvClassFile


class jvstr(Unit):
    """
    Extract string constants from Java class files.
    """
    def process(self, data):
        jc = JvClassFile(data)
        for string in jc.strings:
            yield string.encode(self.codec)

<filename>refinery/units/formats/java/jvstr.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from .. import Unit
from ....lib.java import JvClassFile


class jvstr(Unit):
    """
    Extract string constants from Java class files.
    """
    def process(self, data):
        jc = JvClassFile(data)
        for string in jc.strings:
            yield string.encode(self.codec)

#!/usr/bin/env python3 # -*- coding: utf-8 -*- Extract string constants from Java class files.