Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
4 changes: 3 additions & 1 deletion src/org/andengine/extension/tmx/TMXLayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,9 @@ void initializeTMXTileFromXML(final Attributes pAttributes, final ITMXTileProper

void initializeTMXTilesFromDataString(final String pDataString, final String pDataEncoding, final String pDataCompression, final ITMXTilePropertiesListener pTMXTilePropertyListener) throws IOException, IllegalArgumentException {
DataInputStream dataIn = null;
InputStream in = null;
try{
InputStream in = new ByteArrayInputStream(pDataString.getBytes("UTF-8"));
in = new ByteArrayInputStream(pDataString.getBytes("UTF-8"));

/* Wrap decoding Streams if necessary. */
if(pDataEncoding != null) {
Expand Down Expand Up @@ -248,6 +249,7 @@ void initializeTMXTilesFromDataString(final String pDataString, final String pDa
}
} finally {
StreamUtils.close(dataIn);
StreamUtils.close(in);
}
}

Expand Down