* limitations under the License.
*/
-package flatbuffers;
+package com.google.flatbuffers;
// Class that holds shared constants.
* limitations under the License.
*/
-package flatbuffers;
+package com.google.flatbuffers;
-import static flatbuffers.Constants.*;
+import static com.google.flatbuffers.Constants.*;
import java.util.Arrays;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
* limitations under the License.
*/
-package flatbuffers;
+package com.google.flatbuffers;
import java.nio.ByteBuffer;
* limitations under the License.
*/
-package flatbuffers;
+package com.google.flatbuffers;
-import static flatbuffers.Constants.*;
+import static com.google.flatbuffers.Constants.*;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
code += "package " + namespace_java + ";\n\n";
if (needs_imports) {
code += "import java.nio.*;\nimport java.lang.*;\nimport java.util.*;\n";
- code += "import flatbuffers.*;\n\n";
+ code += "import com.google.flatbuffers.*;\n\n";
}
code += classcode;
auto filename = namespace_dir + kPathSeparator + def.name + ".java";
import java.io.*;
import java.nio.ByteBuffer;
import MyGame.Example.*;
-import flatbuffers.FlatBufferBuilder;
+import com.google.flatbuffers.FlatBufferBuilder;
class JavaTest {
public static void main(String[] args) {
import java.nio.*;
import java.lang.*;
import java.util.*;
-import flatbuffers.*;
+import com.google.flatbuffers.*;
public class Monster extends Table {
public static Monster getRootAsMonster(ByteBuffer _bb) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (new Monster()).__init(_bb.getInt(_bb.position()) + _bb.position(), _bb); }
import java.nio.*;
import java.lang.*;
import java.util.*;
-import flatbuffers.*;
+import com.google.flatbuffers.*;
public class Test extends Struct {
public Test __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; return this; }
import java.nio.*;
import java.lang.*;
import java.util.*;
-import flatbuffers.*;
+import com.google.flatbuffers.*;
public class Vec3 extends Struct {
public Vec3 __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; return this; }